feat(home): modular tile layout for the home page - #58
Merged
Conversation
…back to fewer columns when narrow At max-width 1200px, three tile columns were only ~367px each (cramped) and the layout did not visibly respond to shrinking until quite narrow. Widen .home-container to 1400px and raise the column min-width to 400px so the grid shows roomy 3 columns (~438px) on wide screens and drops to 2 (then 1) as the window narrows. Verified via browser at 1920 (3 cols) and 1500 (2 cols), no clipping.
bilbospocketses
added a commit
that referenced
this pull request
Jun 13, 2026
This was referenced Jun 18, 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.
What
Reworks the home page from the equal-height card grid into a modular tile grid: each category card sizes to its own content, and only data-heavy cards (Imaging Tools, Settings) grow to span two tile-units, lining up with the single cards stacked beside them. Also slims the hero into a compact band and left-aligns the card headers.
Why
The old grid stretched every card in a row to match the tallest one, so a one-link card (Android Devices) carried the same dead space as the six-link Imaging card. The tile layout keeps a uniform, aligned look while letting small cards stay small.
How
var(--cm-tile-span)rows of a fixed tile-unit grid. The span is seeded server-side from the link count (close first paint, no flash), then measured-and-snapped to the exact value client-side, so any future card -- including 3- and 4-row ones -- just works.window.controlMenu.*interop convention (the numeric-token resize pattern fromsidebar-flyout.js), not ES modules --theme.jsdocuments why the app avoids those.Preserves module discovery, the Cameras-hidden-when-empty behaviour, the Settings card, the wizard gate, and pill rendering.
Test plan
dotnet test-- 454 pass (addsHomeTileLayout.InitialSpanunit tests plus a bUnit span-seed assertion; existing Home tests stay green).Spec + plan:
docs/superpowers/specs/2026-06-12-home-tile-layout-design.md,docs/superpowers/plans/2026-06-12-home-tile-layout.md.