Skip to content

fix(landing): make hero demo tabs responsive on mobile (fixes #2321) - #3391

Open
CountClaw wants to merge 1 commit into
different-ai:devfrom
CountClaw:fix/landing-mobile-hero-overflow
Open

fix(landing): make hero demo tabs responsive on mobile (fixes #2321)#3391
CountClaw wants to merge 1 commit into
different-ai:devfrom
CountClaw:fix/landing-mobile-hero-overflow

Conversation

@CountClaw

Copy link
Copy Markdown

Summary

Fixes #2321 — the landing hero's demo panel tabs break on mobile: the category tab strip overflows the card and the flow-list labels truncate aggressively.

Root cause (current code)

  1. Category tab strip (landing-home.tsx): the chip container used flex-wrap and overflow-x-auto together. On a narrow viewport these conflict — the row neither wraps cleanly nor scrolls predictably, so the active pill and labels can overflow the card edge.
  2. Flow list (landing-app-demo-panel.tsx): each flow button put a truncate label next to a whitespace-nowrap timestamp with only mr-2 separating them. On narrow widths the timestamp pushed the label off-screen, truncating it to e.g. Like Twitter replies and exp....

Changes

  • landing-home.tsx: drop flex-wrap on mobile so the tab strip is a single scrollable row; restore flex-wrap + overflow-visible at md where there is room. Desktop behaviour is unchanged.
  • landing-app-demo-panel.tsx: give the label a min-w-0 flex-1 truncate pair and the timestamp shrink-0, so the row lays out correctly and the timestamp never pushes the label off-screen.

No layout changes above md.

Notes

The original report (June 2026) predates several landing refactors; the hero headline and CTA row are already responsive in the current code. This PR targets the two mobile breakages that remain in the current demo panel. tsc --noEmit reports no new errors in the touched files (pre-existing unrelated type errors in packages/email and packages/ui are not introduced here).

…nt-ai#2321)

The demo panel's category tab strip combined flex-wrap with
overflow-x-auto, so on mobile the tabs neither wrapped cleanly nor
scrolled predictably — the active pill and labels could overflow the
card. Drop flex-wrap on mobile (single scrollable row) and keep the
wrapped layout for md+ where there is room.

The flow list inside the demo panel also truncated each tab label hard
on narrow widths ('Like Twitter replies and exp...'). Give the label a
min-w-0/flex-1 truncate pair with a shrink-0 timestamp so the row lays
out without the timestamp pushing the label off-screen.
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, v0 Jul 31, 2026 4:33pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 31, 2026 4:33pm

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics July 31, 2026 16:31 Inactive
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@Kyou12138 is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Bug]: Landing page hero section is not mobile resposneive content is overflowing

2 participants