Browse Source

fix: icon size in sidbar

David Hill 1 month ago
parent
commit
3b46f90124
2 changed files with 6 additions and 1 deletions
  1. 5 0
      packages/ui/src/components/icon.css
  2. 1 1
      packages/ui/src/components/icon.tsx

+ 5 - 0
packages/ui/src/components/icon.css

@@ -17,6 +17,11 @@
     height: 20px;
     height: 20px;
   }
   }
 
 
+  &[data-size="medium"] {
+    width: 24px;
+    height: 24px;
+  }
+
   &[data-size="large"] {
   &[data-size="large"] {
     width: 24px;
     width: 24px;
     height: 24px;
     height: 24px;

+ 1 - 1
packages/ui/src/components/icon.tsx

@@ -73,7 +73,7 @@ const icons = {
 
 
 export interface IconProps extends ComponentProps<"svg"> {
 export interface IconProps extends ComponentProps<"svg"> {
   name: keyof typeof icons
   name: keyof typeof icons
-  size?: "small" | "normal" | "large"
+  size?: "small" | "normal" | "medium" | "large"
 }
 }
 
 
 export function Icon(props: IconProps) {
 export function Icon(props: IconProps) {