Skip to content

fix(BUY-64734): stack hero CTAs + search controls vertically below 768px - #330

Open
BuyWhere wants to merge 1 commit into
mainfrom
fix/BUY-64734-tablet-hero
Open

fix(BUY-64734): stack hero CTAs + search controls vertically below 768px#330
BuyWhere wants to merge 1 commit into
mainfrom
fix/BUY-64734-tablet-hero

Conversation

@BuyWhere

@BuyWhere BuyWhere commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes tablet (768px) cramped layout on https://buywhere.ai/ — search input + dropdown + Search button were forced onto a single horizontal line, and hero CTAs sat side-by-side spanning ~738px, risking horizontal overflow on narrower tablets.

Change

Move the hero CTA row's breakpoint from sm (>=640px) to md (>=768px), and the search bar's breakpoint from lg (>=1024px) to md (>=768px). Below 768px every element stacks vertically with full-width inputs.

  • src/app/page.tsx — hero CTA wrapper: sm:flex-row -> md:flex-row
  • src/components/HomeProductSearch.tsx — search row + inner widths: lg:flex-row / lg:w-36 / lg:w-auto lg:min-w-[10rem] -> md:flex-row / md:w-36 / md:w-auto md:min-w-[10rem] (all three breakpoints moved together)

Why md (not sm)?

QA repro is at 768px specifically. The md breakpoint is exactly that boundary — it preserves the existing side-by-side look at >=768px (the tablet+desktop design) while stacking vertically below 768px, where the bug report describes the failure mode.

Verification

  • Live SSR before: sm:flex-row on hero CTAs, lg:flex-row on search bar (confirming the bug is present).
  • TypeScript: npx tsc --noEmit -p tsconfig.json zero errors in changed files.
  • Next build: npx next build compiles successfully.

Local SSR was deferred to the standard PR/CI pipeline (Railway deploys main).

Test plan

  • Open https://buywhere.ai/ at 768x1024 — hero CTAs sit side-by-side, search controls have adequate spacing.
  • Open at 767px (just below tablet) — hero CTAs stack vertically, search controls stack vertically with full-width inputs.
  • Open at 1024px+ — look unchanged from current desktop.

Closes BUY-64734.

🤖 Generated with Claude Code

The hero CTA row used 'sm:flex-row' (>=640px) and the search bar used
'lg:flex-row' (>=1024px). At iPad portrait (768px) the CTAs sat
side-by-side spanning ~738px, risking horizontal overflow on narrower
tablets, and the search bar was cramped.

Move both breakpoints to 'md:' (>=768px) so the new design at 768px
matches the existing desktop layout, while anything below 768px stacks
vertically with full-width inputs.

Files:
- src/app/page.tsx (hero CTA row)
- src/components/HomeProductSearch.tsx (search bar row + inner widths,
  moved together so the layout flip and the per-element widths flip
  at the same breakpoint)

QA repro: 768x1024 tablet, https://buywhere.ai/

Co-Authored-By: Claude <noreply@anthropic.com>
@BuyWhere

BuyWhere commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

Heartbeat: ready for review. Two-file diff (4 lines) swapping sm:flex-rowmd:flex-row on hero CTAs and lg:*md:* on the search bar. Live SSR at https://buywhere.ai/ confirms the bug today; post-merge Railway deploy will be the live verification. Closes BUY-64734.

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