Skip to content

fix(ui): align header widgets to one height and baseline - #97

Merged
vishr merged 2 commits into
mainfrom
fix/header-tile-alignment
Oct 31, 2026
Merged

vishr merged 2 commits into
mainfrom
fix/header-tile-alignment

Conversation

@vishr

@vishr vishr commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Header tiles took their content's height and the header row centred them, so a tile with a bar under its value (Memory, Disk) sat higher than the others and its label and value no longer lined up.

Every header tile now keeps the same 4 px strip below its value, holding the bar where a tile has one, so all tiles are the same height in normal flow and line up. Board tiles are unchanged. The header stories now check that labels and values share one line (±1 px), and a new MixedAlignment story places tiles with and without bars side by side; the check fails on the old code.

vishr added 2 commits October 31, 2026 11:54
Header tiles took their content's height and the header row centred them,
so a tile with a bar under its value (Memory, Disk) sat higher than the
others and its label and value no longer lined up with the row's.

Every header tile is now 56 px high with its content centred, and the bar
sits on the tile's bottom edge instead of adding height, so labels and
values share one line across the header. Board tiles are unchanged.
… its height

Address review: a fixed 56 px tile broke the overflow menu's Menu.Item
layout, overflowed the 55 px header row and its focus ring, and clipped
large text. Instead every header tile keeps the same 4 px strip below its
value, holding the bar where a tile has one, so tiles are equal in height
in flow. The header stories now check that labels and values share one
line, and a mixed-tile story covers the case that was misaligned.
@vishr
vishr merged commit ff342df into main Oct 31, 2026
6 checks passed
@vishr
vishr deleted the fix/header-tile-alignment branch October 31, 2026 19:36
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