Step row: the compaction count sits higher than the text beside it #554

Closed
opened 2026-11-15 22:37:04 -05:00 by cmoriarty · 1 comment
Owner

What happens

On a settled step's row, the compaction count sits higher than the step name and the time beside it. The finished openspec.apply[all] row shows this, with a count of 4 and a time of 1 h 44 min.

Why

The trailing cell lines up its items by baseline (items-baseline, in Spine.tsx and the same cell in SpineGraph.tsx). CompactionCount (Budget.tsx) is a 20 px SVG with no text baseline, so its bottom edge sits on the text's baseline and the whole mark rises above the text. A running step's cell uses items-center and is not affected.

Fix

Centre the mark on the line instead of setting it on the baseline. One option is self-center on CompactionCount. The other is to give it a box the height of the line, so its number lines up with the time.

Done when

  • The count's number and the time read on one line in the step list and on the graph, for both settled and running steps.
  • A browser check compares the vertical centres of the mark and the time.
## What happens On a settled step's row, the compaction count sits higher than the step name and the time beside it. The finished `openspec.apply[all]` row shows this, with a count of 4 and a time of 1 h 44 min. ## Why The trailing cell lines up its items by baseline (`items-baseline`, in `Spine.tsx` and the same cell in `SpineGraph.tsx`). `CompactionCount` (`Budget.tsx`) is a 20 px SVG with no text baseline, so its bottom edge sits on the text's baseline and the whole mark rises above the text. A running step's cell uses `items-center` and is not affected. ## Fix Centre the mark on the line instead of setting it on the baseline. One option is `self-center` on `CompactionCount`. The other is to give it a box the height of the line, so its number lines up with the time. ## Done when - The count's number and the time read on one line in the step list and on the graph, for both settled and running steps. - A browser check compares the vertical centres of the mark and the time.
Author
Owner

Shipped in #555 (change console-diff-run-bar-count), live as ff34e7f since 17:06 UTC on 2026-11-18 (archived in #556).

The count is centred on its line (self-center). Its −2 px margins give the 20 px mark the line's height, so a row with a count is no taller than one without.

Evidence. The compaction journey now measures a settled step's count against its time, in the list and on the graph. They were 6 px apart on main, and are at most 1 px apart with the fix (0 in the local try).

**Shipped** in #555 (change `console-diff-run-bar-count`), live as ff34e7f since 17:06 UTC on 2026-11-18 (archived in #556). The count is centred on its line (`self-center`). Its −2 px margins give the 20 px mark the line's height, so a row with a count is no taller than one without. **Evidence.** The compaction journey now measures a settled step's count against its time, in the list and on the graph. They were 6 px apart on main, and are at most 1 px apart with the fix (0 in the local try).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid#554
No description provided.