fix(studio): the head of a list carries no mark of its own

This commit is contained in:
locpham
2026-10-10 21:56:47 +07:00
parent d5f35502e5
commit 5af5430f21
+4 -1
View File
@@ -117,7 +117,10 @@ export function ChipRow({
chip.onClick();
}}
>
{list && glyph ? <span className="chip-glyph" aria-hidden="true">{glyph}</span> : null}
{/* A row that cannot be picked is not a name in the list, it is the
head the names stand under: no mark, the way a group heading
reads. */}
{list && glyph && !chip.disabled ? <span className="chip-glyph" aria-hidden="true">{glyph}</span> : null}
{chip.color ? <span className="chip-dot" data-color={chip.color} style={{ background: chip.color }} /> : null}
{/* The name is a box, not the bare text node it used to be: a flex
container turns a loose text node into an anonymous item of its