Repository navigation
Description
On a 375px-wide phone (checked on the live site in Chrome's device emulation), the home page is 686px wide: document.documentElement.scrollWidth is 686. The "Packages without a wheel on …" panel is wider than the screen, so its heading, the name filter, the pagination and the table's right-hand columns are cut off and the whole page pans sideways. Mobile browsers then zoom the page out to fit, so everything else gets smaller too. It also fails WCAG 1.4.10 Reflow, which asks for no sideways scrolling at 320 CSS px (except inside data tables).
Measuring in devtools turns up three causes:
- The grid column grows to fit the table.
.content-split-gridinsite/home.cssisgrid-template-columns: 1fr 380px, and1frunder@media (max-width: 960px). A grid item'smin-widthdefaults toauto, so the1frcolumn grows to the gaps table's min-content width (666px) instead of letting.table-wrapper(which already hasoverflow-x: auto) scroll. Adding.content-split-grid > * { min-width: 0; }in devtools brings the page down to 429px. - The pagination doesn't wrap.
.pagination-controlsis aninline-flexrow with noflex-wrap. With 24 pages,renderPaginationControls()insite/app.jsdraws 10 buttons and an ellipsis, 382px in all. - The checker's title row doesn't wrap.
.omni-title-wrap(the "⚡ Instant Checker" badge plus the "Package Compatibility" heading) isdisplay: flex; flex-shrink: 0, so it stays 345px wide inside a 286px.omni-header.
There's one more problem in the top bar. #cmd-trigger is the only search button on a phone (.cmd-trigger-text and the ⌘K hint are hidden below 640px), and it's squashed to 17×36px. The @media (max-width: 640px) rule gives it width: 36px, but the base rule's flex: 1 (a flex basis of 0, allowed to shrink) wins, so it shrinks between the logo and the 36×36 action buttons.
What to do
- In
site/home.css, let the grid's columns shrink below their content (min-width: 0on.content-split-grid's children, orminmax(0, 1fr)columns), so the table scrolls inside.table-wrapperand doesn't widen the page. - Let
.pagination-controlswrap, or show fewer page numbers on narrow screens. Either is fine; keep the first/previous/next/last buttons. - Let
.omni-title-wrapwrap (or allow it to shrink) below 640px. - In the
max-width: 640pxblock, give.cmd-triggerflex: 0 0 36px(orflex-shrink: 0), so it stays 36×36 like.action-btn. - Check again at 320px and 375px for anything else that pokes out once these are fixed, and fix it the same way.
Done when:
- At 320px and 375px wide,
document.documentElement.scrollWidthequals the viewport width on the home page: on first load, after choosing another platform card, and on page 2 of the gaps table. Wide tables still scroll inside their own wrapper (.table-wrapper,.matrix-scroll). - At 375px,
#cmd-triggeris at least 36×36 and still opens the search dialog. - At 1280px the layout is unchanged: the gaps table and the sidebar still sit side by side.
- The PR has before and after screenshots at 375px, plus one at 1280px.
Activity
An-2k5 commentedon Nov 20, 2026
Hi @patrickballard, thanks for pointing me to this issue! I'd love to take it on and fix the mobile layout overflow and search button sizing. Could you please assign #177 to me?
Fix mobile horizontal overflow and search button sizing on home page (w…