Repository navigation
fix: give the landing columns one shared height - #394
Merged
Merged
Conversation
Deploying nemar-website with
|
| Latest commit: |
1a53708
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1823b777.nemar-website.pages.dev |
| Branch Preview URL: | https://fix-landing-equal-columns.nemar-website.pages.dev |
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #392 and #393 (neither closes automatically: the PR merges into
staging, not the default branch).What
ExternalLink(new tab,rel="noopener noreferrer external", "opens in a new tab") tohttps://dashboard.nemar.org/observability/, which is public and answers 200.How the height works (
Highlights.astro,index.astro)flex: 1 1 0(its basis is zero, so its length does not make the column taller), a minimum of 26rem (five of the taller "latest" rows, so a short or missing news column still leaves the lists a body), andoverflow: clip. It fills the height the row gives it, and rows with no room wrap into a second flex column outside its right edge and are clipped, so a row is shown whole or not at all..col__moregetsmargin-block-start: auto, pinning each column's link to the bottom.index.astrofetches up to 10 rows per list (HIGHLIGHT_ROWS; 12 catalog rows for "latest" before theds*pointers are filtered out). No extra requests; the newest-datasets response is about 9 KB larger (about 27 KB instead of 18 KB).src/lib/highlight-fit.ts) marks theminert: out of the tab order and the accessibility tree. It watches the list and its rows with aResizeObserver, and works in either text direction. Without script the layout is the same; only a keyboard user could tab to an unseen link. (Issue Landing highlights: give the three columns one shared height #392 said CSS only; the script is the one addition, for that accessibility reason.)outline-offset: -2px), because the list's clipping would cut a ring drawn outside them.Review
One Sonnet review round, verdict GO, run against the branch in Chrome, Firefox and WebKit (the Safari engine): the wrap trick works identically in all three (within 1 px), lists never scroll or grow, and the variants (no news, one list, no banner, large root font) all keep the columns equal. Its findings, all fixed: the focus ring was clipped by the list (important); the minimum was 22rem, which gave the latest list four rows on a tablet instead of five (now 26rem); the clipped-row test only worked left to right; the observer only watched the list, not the rows; the ordered list lacked
role="list"(the unordered one had it); ties in the ranking; guard tests that depended on exact whitespace; and survivors of its mutation run (list or rows no longer observed, the clipped test inverted,latestDatasets(…, 5), the newest limit back to 8), which now fail. A small follow-up of mine: rows hidden bydisplay: noneon a phone are no longer flaggedinert.Measured (production data, Chrome, same-origin iframes per width, after the fixes)
The reviewer measured the same layout in Firefox and WebKit (for example 1100 px at 641 px and 1024 px at 627 px, within a few pixels of Chrome, from font differences).
Tested
bun run lint,bun run typecheck(0 errors),bun run test(2691 passed, 118 files).test/highlights-layout.test.ts, tolerant of formatting) and the footer (test/footer-explore-links.test.ts), unit tests for the clipped-row helper and the tie-break; mutations of each fail a test.