Step row: the compaction count sits higher than the text beside it #554
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, inSpine.tsxand the same cell inSpineGraph.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 usesitems-centerand is not affected.Fix
Centre the mark on the line instead of setting it on the baseline. One option is
self-centeronCompactionCount. The other is to give it a box the height of the line, so its number lines up with the time.Done when
Shipped in #555 (change
console-diff-run-bar-count), live asff34e7fsince 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).