From 34a41d70b900d1a06b40457324db263c4a57361a Mon Sep 17 00:00:00 2001 From: lead Date: Sun, 8 Nov 2026 15:27:46 +0800 Subject: [PATCH] fix(sidebar): render project row glyph at a fixed 16px slot with medium stroke The project row was the only row kind drawing a 1px Regular artwork inside a size-less flex slot, so the folder+plus glyph got squashed into an unreadable grey blob. Give .wgCategoryIcon an explicit 16x16 box and switch the glyph to IconProjectAddOutlineMedium, matching every other row icon. --- src/client/rows.tsx | 8 +++++--- src/client/styles.css | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/client/rows.tsx b/src/client/rows.tsx index 59607ce..0262026 100644 --- a/src/client/rows.tsx +++ b/src/client/rows.tsx @@ -63,7 +63,7 @@ import { IconPinOutlineRegular, IconPlanOutlineMedium, IconPlusOutlineRegular, - IconProjectAddOutlineRegular, + IconProjectAddOutlineMedium, IconRightUpOutlineRegular, IconShieldOutlineMedium, IconSkillOutlineMedium, @@ -430,8 +430,10 @@ export function WorkspaceRow({ node, t, onToggle, onNewSession, onRename, onDele {/* Project rows use the project glyph (same as the official workspace - browser) so groups (folder glyph) and projects stay distinguishable. */} - + browser) so groups (folder glyph) and projects stay distinguishable. + Medium stroke like every other row glyph: the thin Regular artwork + turns into a grey blob once the sidebar shrinks it. */} + {node.label} {/* Same trailing-slot contract as groups and folders: the count and the diff --git a/src/client/styles.css b/src/client/styles.css index 9ffa0cd..2659ecc 100644 --- a/src/client/styles.css +++ b/src/client/styles.css @@ -286,6 +286,17 @@ justify-content:center; align-items:center; display:inline-flex; + /* Fixed 16px slot: without an explicit box the glyph was free to be squashed + by the row's flex track, which turned the project folder into a grey blob. */ + width:16px; + height:16px; +} + +.wgCategoryIcon > svg { + display:block; + width:16px; + height:16px; + flex:none; } .wgCategoryLabel {