Skip to content

fix(landing): stop the wall guillotining blocks on small screens - #392

Merged
Ducksss merged 2 commits into
devfrom
claude/wall-review-fixes
Jul 27, 2026
Merged

Ducksss merged 2 commits into
devfrom
claude/wall-review-fixes

Conversation

@Ducksss

@Ducksss Ducksss commented Jul 27, 2026

Copy link
Copy Markdown
Owner

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:

viewport before after
390px 14 cards clipped, up to +165px, hard cut 3 cards, up to +34px, soft-faded
768px 7 cards clipped, up to +169px, hard cut 3 cards, soft-faded
1440px none none

Cause. A single zoom: 0.3 meant 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.png moved, confirmed by minting with --update-snapshots=changed.

Restored: the frame's bottom fade

.wall-card-frame::after was 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 ComponentWall instead of being a silent trap — any future demo-content change (dev's content-quote logoLabel already moved one) would otherwise reintroduce cutting unnoticed.

Also checked, no action needed

  • No focusable elements inside the aria-hidden wall at any breakpoint — DemoLink is correctly a <span>, so there's no tab-order pollution or aria-hidden-focus violation.
  • The wall never overlays the hero CTAs (wall top vs CTA bottom verified at all three breakpoints).
  • Stale comments describing the old single-zoom geometry corrected.

Verification

  • Page height stable across 6 consecutive production-mode runs (desktop 10027px, mobile 16965px)
  • 40/40 frontend e2e, axe clean on /, lint + tsc clean, production build clean
  • Zero horizontal overflow at 390 and 1440

Linux baselines still need minting via visual-baselines.yml (spec frontend) — now correctly running in production mode thanks to #370.

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]>
Copilot AI review requested due to automatic review settings July 27, 2026 19:36
@vercel

vercel Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview, Comment Jul 27, 2026 7:38pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@Ducksss, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 11880956-745d-46ad-8aa3-58012431a706

📥 Commits

Reviewing files that changed from the base of the PR and between d646903 and 53a8171.

⛔ Files ignored due to path filters (2)
  • tests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-darwin.png is excluded by !**/*.png
  • tests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • src/app/globals.css
  • src/components/site/graphics/ComponentWall.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/wall-review-fixes

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/ducksss-projects?upgradeToPro=build-rate-limit

@Ducksss
Ducksss merged commit ab7280b into dev Jul 27, 2026
9 of 11 checks passed
@Ducksss
Ducksss deleted the claude/wall-review-fixes branch July 28, 2026 09:58
Ducksss added a commit that referenced this pull request Jul 28, 2026
)

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]>
Ducksss added a commit that referenced this pull request Jul 29, 2026
…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.
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.

2 participants