Repository navigation
fix(landing): stop the wall guillotining blocks on small screens - #392
Conversation
Review of the merged wall found a regression I introduced while iterating: 14 of 18 cards were hard-cropped mid-sentence on a phone (up to 165px cut) and 7 on a tablet. Desktop was clean, which is exactly why it slipped through — the slug set was curated against measurements taken only at 1440px. Cause: a single zoom of 0.3 meant the inner layout width tracked the card width, so at 231px the twin was laid out at 770px, where it re-wraps into a mobile-shaped column two to three times taller than its frame. The zoom now varies per breakpoint so the inner layout width is always 1280px (231/0.18046875 = 330/0.2578125 = 384/0.3), and every card shows the same true desktop proportions at every size. Frame heights are tuned to that layout. Desktop geometry is untouched — only the mobile baseline moves. Also restores the .wall-card-frame bottom fade, dropped when cards were briefly natural-height and never restored when they went back to fixed heights. Three twins still overrun on small screens because the twins are responsive on viewport media queries rather than container queries; the fade dissolves the overrun instead of cutting it. Documented in ComponentWall rather than left as a silent trap, since any future demo-content change can push another block over. Verified: no clipping at 1440, three soft-faded overruns at 390/768 (was 14/7 hard cuts), no focusable elements inside the aria-hidden wall, page height stable across 6 production runs (desktop 10027px, mobile 16965px), 40/40 frontend e2e, axe clean on /. Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Deployment failed with the following error: |
) The wall fix in #392 measured the phone and the desktop. It did not measure the band between them, and that is where the cropping was worst: content-quote, content-feature-media and content-feature-split ran 88/80/79px past a 212px frame at 640-1023px, against 32/26/25px at 390px. The fade absorbs 28px, so those three were still visibly losing a sentence on a tablet after #392 shipped — the same defect as before, one breakpoint over. Cause is the documented caveat, sharper than expected: the twins pick their variant from the VIEWPORT, not from the width the wall lays them out at, and the stacked variants are tallest in the tablet band, not on a phone. Fixed by giving that band a 256px frame (taller than desktop's 216px) and widening the fade to 2.75rem over the same range. Both are scoped to 640-1023px on purpose: 390px and 1440px are pinned by visual baselines and neither moves, which is why no baseline is re-minted here. Worst overrun in the band is now 44px against a 44px fade. Also asserts the fit, at three widths, because a curated fit measured at one width is what produced both regressions. The guard was verified by reverting the per-breakpoint zoom: it fails at 128px on phone and 93px on tablet while desktop still passes, which is exactly the blind spot that let #370 through. A second test pins the frame fade, which has already gone missing once. The 60px ceiling is not snug to the current 44px — it catches losing-a-paragraph regressions without failing on copy edits. Verified: 44/44 frontend e2e (both landing baselines unchanged), 10/10 axe, eslint and tsc clean. Co-authored-by: Claude Opus 5 <[email protected]>
…r adoption, template a11y (#409) Brings main level with dev (137 commits). Headline items: - the component wall no longer crops blocks: per-breakpoint zoom pins the twins' inner layout width at 1280px (#392), and the 640-1023px band gets a 256px frame plus a widened fade (#399). Production was cutting content-quote, content-feature-media and content-feature-split by 88/79/78px on a tablet; measured on the live site, not inferred. Three viewport tests now assert the fit so a curated-at-one-width regression cannot recur silently. - prettier is adopted: config matched to the house style (#402), the tree formatted, and format:check gated in test:release and the CI lint step (#408). - template a11y and layout fixes (#394, #398, #404), consent gate split by provider (#400), axe now waits for the consent banner (#405), CodeQL double-escaping fix (#391). Tree is identical to dev by construction: branched from dev, reparented onto main, so the diff is exactly the main..dev delta with no squash-divergence conflicts.
Post-merge review pass on the component wall (#370). One real regression found and fixed, plus a dropped safety net restored.
🔴 The wall guillotined blocks on small screens
14 of 18 cards were hard-cropped mid-sentence on a phone (up to 165px cut off) and 7 on a tablet. Desktop was clean — which is precisely why it slipped through: the slug set was curated against heights measured only at 1440px.
Measured before and after, per breakpoint:
Cause. A single
zoom: 0.3meant the inner layout width tracked the card width, so a 231px card laid its twin out at 770px — where the block re-wraps into a mobile-shaped column two to three times taller than its frame.Fix. The zoom now varies per breakpoint so the inner layout width is always 1280px (
231/0.18046875 = 330/0.2578125 = 384/0.3). Every card shows the same true desktop proportions at every size, and the frame heights (derived from that 1280 layout) hold. Widths stay integer-divisible, preserving the pixel-determinism fix from #370.Desktop geometry is untouched — only
landing-home-mobile-chromium-darwin.pngmoved, confirmed by minting with--update-snapshots=changed.Restored: the frame's bottom fade
.wall-card-frame::afterwas dropped when cards were briefly natural-height, and never restored when they went back to fixed heights — so any overflow became a hard cut again. It's back.Three twins still overrun on small screens, and that is not fully fixable here: the twins are responsive on viewport media queries, not container queries, so a phone renders each block's stacked variant however wide we lay it out. Making it exact means re-curating against two variants or container-querying 60+ twins. The fade dissolves the overrun, and the constraint is now documented in
ComponentWallinstead of being a silent trap — any future demo-content change (dev'scontent-quotelogoLabel already moved one) would otherwise reintroduce cutting unnoticed.Also checked, no action needed
aria-hiddenwall at any breakpoint —DemoLinkis correctly a<span>, so there's no tab-order pollution oraria-hidden-focusviolation.Verification
/, lint + tsc clean, production build cleanLinux baselines still need minting via
visual-baselines.yml(specfrontend) — now correctly running in production mode thanks to #370.