Skip to content

Fix frames column alignment - #49

Merged
Kinflou merged 1 commit into
masterfrom
fix/frames-column-alignment
Sep 3, 2026
Merged

Fix frames column alignment#49
Kinflou merged 1 commit into
masterfrom
fix/frames-column-alignment

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 3, 2026

Copy link
Copy Markdown
Member

The header from #48 didn't line up with the rows: the header is
font-size: 0.6rem and the rows 0.72rem, and both had 3ch and
minmax(_, auto) tracks — ch is font-size-relative and auto sizes to
each grid's own text, so the two grids resolved different column widths.

--frame-grid is now all rem plus one shared 1fr (the fn column) —
nothing content- or font-size-dependent, so the header and every row use
identical tracks. direction is a fixed 10rem (ellipsis past that).

24 tests + build green.

The header (`font-size: 0.6rem`) and the rows (`0.72rem`) each sized their
own `3ch` / `minmax(_, auto)` tracks, so the columns drifted. Every track is
now rem or a single shared `1fr` (fn) — font-size- and content-independent,
so the header lines up with the rows. `direction` is a fixed 10rem
(ellipsis past that); `fn` takes the slack.
@Kinflou
Kinflou merged commit cbb54c5 into master Sep 3, 2026
2 checks passed
@Kinflou
Kinflou deleted the fix/frames-column-alignment branch September 3, 2026 21:19
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