Skip to content

fix: keep library landing heroes inside narrow screens - #1481

Merged
tannerlinsley merged 1 commit into
mainfrom
taren/landing-narrow-wordmarks
Nov 1, 2026
Merged

tannerlinsley merged 1 commit into
mainfrom
taren/landing-narrow-wordmarks

Conversation

@tannerlinsley

@tannerlinsley tannerlinsley commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

At 320px, the Markdown landing hero's implicit grid column grows to the wordmark's 346px minimum width, clipping the title and the copy beside the viewport edge. Give the single-column hero an explicit zero-minimum grid track and use the existing smaller display token below 400px. The larger typography resumes at 400px.

The change applies to the shared library landing shell. It does not change the breadcrumb overlay from #1480.

Validation: pnpm test passed. Reproduced the production failure in WebKit, then checked the actual local component for Markdown, Highlight and Query at 320, 400 and 1280px. At 320px, Markdown’s title fits within the 280px content column and the copy wraps inside the viewport. The 400px and desktop title dimensions stay unchanged. No live-provider or authenticated flows were exercised.

Summary by CodeRabbit

  • Style
    • Updated the library landing page layout and heading sizes across screen widths.

@changeset-bot

changeset-bot Bot commented Nov 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2884a98

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6097f53-d1b3-425e-8824-b4d37d27a529
Commits

Reviewing files that changed from the base of the PR and between aa329d6 and 2884a98.

Files selected for processing: 1
  • src/components/landing/LibraryLanding.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The library landing hero now uses one column when stackHero is true. The library-name heading uses updated responsive text sizes.

Changes: Library landing layout

Layer / File(s) Summary
Responsive hero layout
src/components/landing/LibraryLanding.tsx
When stackHero is true, the hero grid uses one column. The library-name heading uses a smaller base size and adds a size step at widths of at least 400px.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Suggested reviewers: abeuty, tombeckenham

Merge Risk: Minimal · up to 2884a

No actionable merge-blocking risk was identified in this layout change.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: keeping library landing heroes inside narrow screens. The raw summary confirms the change in LibraryLanding.tsx: a one-column grid when stackHero is true, and a smalle…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: keeping library landing heroes inside narrow screens. The raw summary confirms the change in LibraryLanding.tsx: a one-column grid when stackHero is true, and a smaller heading size below 400px. The objectives state the fix targets the Markdown hero's implicit grid column overflowing at 320px. The title uses the conventional fix: prefix and is specific and concise, so it passes.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 2884a98 Commit Preview URL

Branch Preview URL
Nov 01 2026, 04:43 PM

@tannerlinsley
tannerlinsley merged commit 5c6a009 into main Nov 1, 2026
8 checks passed
@tannerlinsley
tannerlinsley deleted the taren/landing-narrow-wordmarks branch November 1, 2026 16:50
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