Skip to content

Fix case-study page mobile responsiveness - #10

Merged
2002Bishwajeet merged 1 commit into
mainfrom
fix/evisa-case-study-mobile
Jun 10, 2026
Merged

2002Bishwajeet merged 1 commit into
mainfrom
fix/evisa-case-study-mobile

Conversation

@2002Bishwajeet

Copy link
Copy Markdown
Contributor

The case-study page (/case-study/evisa) overflowed horizontally on phones — at a 390px viewport the layout was ~586px wide (whole-page horizontal scroll). Root causes and fixes:

  • "At a glance" grid stayed 4 columns on mobile because an inline gridTemplateColumns: repeat(4,1fr) overrode the responsive CSS class. Now uses repeat(auto-fit, minmax(210px, 1fr)), so it reflows 4 → 2 → 1 column on its own.
  • Phone mockups used width: 414 (a fixed width that forced the grid track, and the page, ~414px wide). Changed to width: 100%, maxWidth: 414 so they fill the column on phones and cap at 414 on desktop.
  • Slim header nav (3 links) didn't wrap and spilled past the edge. Added flexWrap.
  • Metrics table is now wrapped in a min-width scroll container, so its three columns stay readable and scroll horizontally on phones instead of being cut off.

Verified with Playwright at 390px: document width is exactly 390 (was 586), 0 elements overflow the viewport, no page errors. Desktop layout is unchanged.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 10, 2026 •

Copy link
Copy Markdown

Deploying ux4g with  Cloudflare Pages  Cloudflare Pages

Latest commit: d178cb5
Status: ✅  Deploy successful!
Preview URL: https://62eebef4.ux4g.pages.dev
Branch Preview URL: https://fix-evisa-case-study-mobile.ux4g.pages.dev

View logs

@2002Bishwajeet
2002Bishwajeet merged commit 4c0f562 into main Jun 10, 2026
3 checks passed
@2002Bishwajeet
2002Bishwajeet deleted the fix/evisa-case-study-mobile branch June 10, 2026 17:22
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.

1 participant