Skip to content

fix(BUY-60625): shrink mobile hero spacing so CTA fits above 844px fold - #281

Open
BuyWhere wants to merge 2 commits into
mainfrom
fix/BUY-60625-mobile-cta-spacing
Open

fix(BUY-60625): shrink mobile hero spacing so CTA fits above 844px fold#281
BuyWhere wants to merge 2 commits into
mainfrom
fix/BUY-60625-mobile-cta-spacing

Conversation

@BuyWhere

Copy link
Copy Markdown
Owner

Summary

Live probe @ 390x844 on 2026-07-29T21:35Z confirmed the amber "Shop laptops" CTA in the Quick Next Step card sits at y=833 (only 11px visible above the 844px fold). The earlier overflow-hidden max-sm:overflow-visible fix alone was insufficient — the hero itself is 919px tall because of gap-12 (48px) and py-16 (64px) on mobile.

Change

Reduces mobile spacing in the hero <section> of src/components/seo/SeoLandingPage.tsx:

  • gap-12gap-8 on mobile (sm:gap-12 and lg:gap-12 preserve desktop)
  • py-16py-10 pb-12 on mobile (sm:py-16 and lg:py-24 preserve desktop)

Verification

  • next build passes with type check
  • Static HTML check: served HTML still has overflow-hidden max-sm:overflow-visible and now contains the responsive py-10/pb-12/gap-8 classes
  • Live pre-deploy probe (still clipped at y=833) documented in BUY-60625 comments
  • Post-deploy probe expected: CTA fully visible above 844px fold at 390px viewport

Rollback

Revert single-file commit 9127f3744.

🤖 Generated with Claude Code

Reed and others added 2 commits July 29, 2026 08:53
Hide the full hero / search editor / search-results toolbar on mobile
(<768px) when an active search is in flight. Replace with a single
`<h1 data-testid="search-mobile-summary">` summary line that shows
country + result count + active query. This keeps the first product
card above the fold at 390x844.

Also reduces the results section vertical padding on mobile.

Mobile-only changes (md:hidden / hidden md:block). Desktop layout is
unchanged.
Live probe @ 390x844 on 2026-07-29T21:35Z confirmed the amber 'Shop
laptops' CTA in the Quick Next Step card sits at y=833 (only 11px
visible above 844px fold). The earlier overflow-visible fix alone
wasn't enough — the hero itself is 919px tall because of gap-12 (48px)
and py-16 (64px) on mobile.

Reduce grid gap to gap-8 and section padding to py-10 pb-12 on mobile
(sm: and lg: prefixes preserve desktop layout). Desktop hero padding
remains lg:py-24; desktop gap remains lg:gap-12.

Co-Authored-By: Claude <noreply@anthropic.com>
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