Skip to content

Selected part row prints one glyph of its name: the label track collapses under the dirty badge + build chip #88

Closed

Description

@Code4me2

Observed 2026-09-01 at 1280×800, on #41's branch (3adc8e3).

What happens

In jig-99-viewport.png the selected part row reads a ○ untracked 1 geometries. The a is the whole of assembly_jig. The geometry row nested under it prints assembly_jig in full — because its trailing content is one digit.

Measured in real Chrome at 1280×800, real components and real stylesheets (ProjectTree + GitDirty mounted in Shell.module.css's own rail box, query cache seeded with the shapes the jig drive produced):

part row label box the name needs trailing
assembly_jig selected, untracked + 1 geometries 28px 86px 197px
spacer selected, untracked + not built 67px 43px 158px
assembly_jig unselected, untracked 134px 86px 91px
tread unselected, clean 225px 36px 0

Rail clientWidth 279 / scrollWidth 279 — nothing overflows the column, so this is not #32 coming back.

Cause

web/src/system/TreeRow.module.css:66-78 — .label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis } beside .trailing { flex: none }. The trailing group never shrinks, so the row's subject pays for every pixel two readouts want. ProjectTree.tsx:216-231 puts both of them on the selected row: DirtyMarker (a Badge carrying the word untracked) and a Chip (1 geometries). The row this happens on is always the one the operator is working in, and the longer the part name the less of it survives.

Ellipsis does not rescue it. 28px is narrower than a… in the mono face, so what lands on screen is one glyph and no elision mark — the row reads as a rendering fault rather than as truncation, and bracket_left / bracket_right are indistinguishable while selected.

Expected

The part name shrinks last. Any of:

  • the trailing readouts take min-width: 0 and elide, count first (1 geometries is also in Results, three inches away);
  • the dirty marker keeps its Badge icon and moves the word to aria-label / title (§4.7 forbids colour-only markers; it does not require the word to be painted at 279px);
  • the readouts wrap below the name instead of competing with it.

Whatever the choice: a part name must never render narrower than its own ellipsis.

§4 citation

§4.7 TreeRow: "26px, indent by depth, disclosure chevrons from the sprite… The §13.1 dirty marker is a Badge variant carrying an aria-label, never a bare coloured dot." The marker is a compliant badge; the defect is that the compliant badge is funded by the row's own subject. §4.1: "RAIL is the project: part tree, inline git dirty markers (§13.1), and the selected part's version list" — a part tree whose selected row cannot print the part's name is not projecting the project.

Not a duplicate of

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions