summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-01-20 22:03:00 +0000
committeropencode <[email protected]>2026-01-20 22:04:13 +0000
commit3b46f90124d362aaa553d6cfb0ff3811302a5921 (patch)
tree3a22645517cc2cc7de3923ce9160a62189d9ebde
parent80dc74a0ec7c5bd3a03f95a8fd658993d302da2a (diff)
downloadopencode-3b46f90124d362aaa553d6cfb0ff3811302a5921.tar.gz
opencode-3b46f90124d362aaa553d6cfb0ff3811302a5921.zip
fix: icon size in sidbar
-rw-r--r--packages/ui/src/components/icon.css5
-rw-r--r--packages/ui/src/components/icon.tsx2
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/ui/src/components/icon.css b/packages/ui/src/components/icon.css
index 14a52bc83..a2ebee30b 100644
--- a/packages/ui/src/components/icon.css
+++ b/packages/ui/src/components/icon.css
@@ -17,6 +17,11 @@
height: 20px;
}
+ &[data-size="medium"] {
+ width: 24px;
+ height: 24px;
+ }
+
&[data-size="large"] {
width: 24px;
height: 24px;
diff --git a/packages/ui/src/components/icon.tsx b/packages/ui/src/components/icon.tsx
index 817f7fd6a..00f1f8add 100644
--- a/packages/ui/src/components/icon.tsx
+++ b/packages/ui/src/components/icon.tsx
@@ -73,7 +73,7 @@ const icons = {
export interface IconProps extends ComponentProps<"svg"> {
name: keyof typeof icons
- size?: "small" | "normal" | "large"
+ size?: "small" | "normal" | "medium" | "large"
}
export function Icon(props: IconProps) {