Skip to content

Home page on a phone: the page scrolls sideways, and the search button is squashed to 17px #177

Closed

Description

@patrickballard

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-grid in site/home.css is grid-template-columns: 1fr 380px, and 1fr under @media (max-width: 960px). A grid item's min-width defaults to auto, so the 1fr column grows to the gaps table's min-content width (666px) instead of letting .table-wrapper (which already has overflow-x: auto) scroll. Adding .content-split-grid > * { min-width: 0; } in devtools brings the page down to 429px.
  • The pagination doesn't wrap. .pagination-controls is an inline-flex row with no flex-wrap. With 24 pages, renderPaginationControls() in site/app.js draws 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) is display: 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: 0 on .content-split-grid's children, or minmax(0, 1fr) columns), so the table scrolls inside .table-wrapper and doesn't widen the page.
  • Let .pagination-controls wrap, or show fewer page numbers on narrow screens. Either is fine; keep the first/previous/next/last buttons.
  • Let .omni-title-wrap wrap (or allow it to shrink) below 640px.
  • In the max-width: 640px block, give .cmd-trigger flex: 0 0 36px (or flex-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.scrollWidth equals 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-trigger is 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

  1. added
    accessibility
    bug
    good first issue
    on Nov 20, 2026
  2. An-2k5 commented on Nov 20, 2026

    @An-2k5
    Contributor

    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?

  3. added a commit that references this issue on Nov 20, 2026
    399a2e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitybuggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions