fix(sidebar): keep the chevron slot to a single clipped glyph

A second shape was painting itself over the disclosure triangle on one project
row, so the marker read as a mush of two glyphs. Clip the 14px slot and drop any
svg that is not its first child.
This commit is contained in:
lead 2026-11-08 15:32:32 +08:00
parent 34a41d70b9
commit 308a790412
2 changed files with 11 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -274,6 +274,15 @@
align-items:center;
transition:transform .12s;
display:inline-flex;
/* The slot owns exactly ONE glyph. Clip it so nothing that lands here from
another layer (an overlay, a duplicated svg) can paint a second shape on top
of the triangle — that stray shape reads as a broken, mushy icon. */
overflow:hidden;
}
/* Keep only the first svg in the slot; a second one is never part of a row. */
.wgChevron > svg:not(:first-child) {
display:none;
}
.wgChevronOpen {