Skip to content

Fix mobile horizontal overflow and search button sizing on home page - #191

Merged
patrickballard merged 2 commits into
wheelgap:mainfrom
An-2k5:fix-mobile-overflow-177
Nov 20, 2026
Merged

patrickballard merged 2 commits into
wheelgap:mainfrom
An-2k5:fix-mobile-overflow-177

Conversation

@An-2k5

@An-2k5 An-2k5 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #177

Summary

Fixed mobile horizontal overflow (WCAG 1.4.10 Reflow) and topbar search button sizing on narrow viewports (320px and 375px) in site/home.css:

  • Grid column shrinking: Added min-width: 0 to .content-split-grid > * so the 1fr column shrinks below the gaps table's min-content width, allowing .table-wrapper to scroll horizontally without widening the page.
  • Pagination wrapping: Added flex-wrap: wrap to .pagination-controls so multi-page controls wrap cleanly on narrow screens while preserving first/previous/next/last buttons.
  • Omni-checker header wrapping: Allowed .omni-title-wrap to wrap (flex-wrap: wrap; min-width: 0) so the badge and heading fit within narrow headers.
  • Search button sizing: Added flex: 0 0 36px to .cmd-trigger under @media (max-width: 640px) to override the base flex: 1 rule and keep it 36×36 alongside .action-btn.

Verification

  • Verified document.documentElement.scrollWidth === window.innerWidth is true at both 320px and 375px on initial load, after switching platform cards, and on page 2 of the gaps table.
  • Verified #cmd-trigger stays 36×36 at 375px and opens the search dialog.
  • Verified the two-column desktop layout at 1280px remains unchanged.

Screenshots

Before (375px) After (375px)
Ảnh 375 chưa sửa ảnh 375 đã sửa

Desktop (1280px — After):
ảnh 1280

The checker's verdict block kept a 240px minimum width, which is wider than
the panel's content at 320px, so the page scrolled sideways again once a
package was checked. The .omni-title-wrap rule in the 640px block repeated
the new base rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard

Copy link
Copy Markdown
Contributor

Thanks @An-2k5, this is a careful fix: the min-width: 0 on the split grid's children and the fixed 36px search button are exactly what #177 needed.

We've made these changes so it can go in:

  • At 320px the page still scrolled sideways once a package was checked, because .verdict-text-block keeps a 240px minimum width that's wider than the panel's content there. Inside the 640px block it now takes the full row with min-width: 0.
  • Dropped the .omni-title-wrap rule in the 640px block, since the new base rule already does the same.

It'll merge once a final review passes.

(Review assisted by Claude.)

@patrickballard
patrickballard merged commit 399a2e7 into wheelgap:main Nov 20, 2026
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thank you @An-2k5, and welcome! Giving the split grid's children min-width: 0 was the right root-cause fix: the gaps table now scrolls inside its own wrapper instead of pushing the whole page sideways. We also let the verdict text take its own row at 640px and below, so the page doesn't scroll sideways at 320px once a package is checked.

If you'd like another one on the same page, #178 has no PR yet: giving accessible names to the buttons that only show a symbol (pagination arrows, row toggles, export tiles, theme toggle). You already know the home page's markup and CSS, so it should be a natural next step.

(Review assisted by Claude.)

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.

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

2 participants