Skip to content

Keep a name beside a fixed sibling shrinking instead of vanishing - #562

Draft
thebhef wants to merge 1 commit into
task166-axis-collapsefrom
task166-label-ellipsis
Draft

thebhef wants to merge 1 commit into
task166-axis-collapsefrom
task166-label-ellipsis

Conversation

@thebhef

@thebhef thebhef commented Oct 15, 2026

Copy link
Copy Markdown
Owner

NameText renders a long name as an inline-flex box, an atomic inline.
Placed after a bus dot, a CAN id or ahead of a badge in a block line
that clips with text-overflow, the box no longer fits and the engine
hides it whole: the label disappeared at once instead of ellipsizing
its head and keeping its tail. The plot legend's "bus . ecu . message"
line is the reported case; five table cells share the shape.

One shared .name-row class is a flex row whose children keep their
width, with .name-row-text the only box that shrinks and ellipsizes.
It now backs the plot legend's message line and the message cells of
the Signals panel (math row's bus dots, file-backed badge), the View
Signals panel (CAN id; the unknown-unit flag, wrapped only on flagged
rows so an unflagged cell stays a bare name) and the RBS Signals panel
(CAN id). The id's literal space became .name-row-lead's margin.

nameOverflow asserts the stylesheet contract (jsdom does no layout)
and lists each surface; ViewSignalsPanel's tests select the flagged
row's name through the new box. ADR 0026 states the rule. The plot
axis label holds NameText as its only child and is unchanged.

Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com

This was referenced Oct 15, 2026
This was referenced Oct 15, 2026
NameText renders a long name as an inline-flex box, an atomic inline.
Placed after a bus dot, a CAN id or ahead of a badge in a block line
that clips with text-overflow, the box no longer fits and the engine
hides it whole: the label disappeared at once instead of ellipsizing
its head and keeping its tail. The plot legend's "bus . ecu . message"
line is the reported case; five table cells share the shape.

One shared .name-row class is a flex row whose children keep their
width, with .name-row-text the only box that shrinks and ellipsizes.
It now backs the plot legend's message line and the message cells of
the Signals panel (math row's bus dots, file-backed badge), the View
Signals panel (CAN id; the unknown-unit flag, wrapped only on flagged
rows so an unflagged cell stays a bare name) and the RBS Signals panel
(CAN id). The id's literal space became .name-row-lead's margin.

nameOverflow asserts the stylesheet contract (jsdom does no layout)
and lists each surface; ViewSignalsPanel's tests select the flagged
row's name through the new box. ADR 0026 states the rule. The plot
axis label holds NameText as its only child and is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thebhef
thebhef force-pushed the task166-label-ellipsis branch from de60775 to 8af8775 Compare October 26, 2026 22:42
@thebhef
thebhef force-pushed the task166-axis-collapse branch from 33b8a80 to 813e924 Compare October 26, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant