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.
This commit is contained in:
parent
dcc47fc0b6
commit
34a41d70b9
|
|
@ -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
|
|||
</span>
|
||||
<span className="wgCategoryIcon" data-wg-row-icon="project">
|
||||
{/* Project rows use the project glyph (same as the official workspace
|
||||
browser) so groups (folder glyph) and projects stay distinguishable. */}
|
||||
<IconProjectAddOutlineRegular />
|
||||
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. */}
|
||||
<IconProjectAddOutlineMedium size={16} />
|
||||
</span>
|
||||
<span className="wgProjectLabel" title={node.path}>{node.label}</span>
|
||||
{/* Same trailing-slot contract as groups and folders: the count and the
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue