Skip to content

Landing: fix mobile hero — fixed-height demo + soft dot-grid/wash#280

Merged
SawyerHood merged 2 commits into
mainfrom
bb/fix-mobile-landing-demo-height-growth-thr_5cgumeb9sx
Jun 20, 2026
Merged

Landing: fix mobile hero — fixed-height demo + soft dot-grid/wash#280
SawyerHood merged 2 commits into
mainfrom
bb/fix-mobile-landing-demo-height-growth-thr_5cgumeb9sx

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

Fixes three mobile-only issues on the landing page hero, all reported from a phone:

  1. Demo card grew without bound. The mock BB app ("Triage the Sentry spike") streams rows in endlessly, and on mobile the card kept growing taller as messages arrived, pushing the page down. The ≤720px media query had dropped the desktop's bounded-and-clipping behavior (.mock-bodyheight:auto, .feedoverflow:visible). Restored a fixed height and added min-height:0 to .main (needed because mobile stacks the body as a column flex) so the feed clips and anchors newest rows to the bottom, matching desktop.

  2. Dot-grid bunched into a hard band. .hero::after's mask is a fixed-px (540px) radial tuned for the wide desktop hero; on the narrow mobile hero it couldn't fade within the box, leaving a full-width band of dots with a hard edge near the headline. Re-sized with a relative % ellipse so it fades on all sides as ambient texture.

  3. Neutral wash had hard corners. .hero::before's background wash had the same fixed-px (640px) problem — a faint gray rectangle with hard side edges/corners behind the nav. Re-sized relative to the hero so it fades on all sides too.

All changes are scoped to @media (max-width: 720px); desktop is unchanged. The mask override includes the -webkit- prefix for iOS Safari.

Files changed

  • apps/landing/src/styles.css

Testing

  • pnpm exec turbo run typecheck build --filter=@bb/landing
  • pnpm --filter @bb/landing lint
  • Verified in a 390px mobile viewport (and 360/414px) via headless browser:
    • Demo card height stays fixed (574px) across 18s+ of streaming; newest message visible at bottom, oldest clipped at top.
    • Dot-grid and wash both fade on all sides with no hard band/edges/corners.
    • No horizontal overflow at any tested width.
    • Desktop (1280px) hero + demo unchanged.

Risks

Low — CSS-only, mobile-scoped. No behavior/logic changes.

SawyerHood and others added 2 commits June 19, 2026 17:59
On mobile the mock app card grew taller as the running thread streamed
rows in, pushing the page down instead of clipping inside the frame.

The ≤720px media query switched .mock-body to height:auto and .feed to
overflow:visible/min-height:200px, dropping the bounded-and-clipping
behavior the desktop layout relies on. Because the body is a column flex
here, .main also needs min-height:0 so it stays within the fixed body
instead of growing with the feed's content.

Now the card stays a fixed height and the feed clips, anchoring the
newest rows to the bottom (.feed-live) — matching desktop.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ngles

The hero's dot-grid (.hero::after mask) and neutral wash (.hero::before
background) are both sized in fixed px (540/640px radial) for the wide
desktop hero. On the narrow mobile hero those radials can't fade within
the box, so each renders as a full-width rectangle with hard side edges
and corners instead of a soft, fading patch.

On mobile (≤720px) re-size both with relative (%) radials narrower than
the hero so they fade out on all sides as ambient texture. Include the
-webkit- mask prefix for iOS Safari. Desktop is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SawyerHood SawyerHood merged commit 3e5d1ba into main Jun 20, 2026
6 checks passed
@SawyerHood SawyerHood deleted the bb/fix-mobile-landing-demo-height-growth-thr_5cgumeb9sx branch June 20, 2026 01:54
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