Skip to content

fix: mobile-friendly landing hero + nested-<p> hydration fix#89

Merged
enoch85 merged 1 commit into
mainfrom
fix/mobile-friendly-docs
Jun 5, 2026
Merged

fix: mobile-friendly landing hero + nested-<p> hydration fix#89
enoch85 merged 1 commit into
mainfrom
fix/mobile-friendly-docs

Conversation

@enoch85

@enoch85 enoch85 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes the Introduction landing page on mobile and resolves a hydration error.

  • Responsive hero: the hero forced aspect-ratio: 1600/915 on all viewports, producing a cramped letterbox on phones. A max-width: 768px rule in src/css/custom.css now lets the panel size to its content, strengthens the background scrim for legibility, scales the title responsively, and stacks the call-to-action buttons. Desktop is unaffected.
  • Hydration error: the intro-tagline-subtitle text was wrapped by MDX in a nested <p>, causing an invalid <p>-in-<p> and a React hydration error. Collapsing it to a single line resolves this, applied to the current docs and the 3.14.0 snapshot.

Verification

  • npm run build and npm run format:check pass
  • No console or hydration errors on /
  • Verified at 360px, Pixel 7, and 1280px widths

…rror

The Introduction hero forced aspect-ratio: 1600/915 on every viewport, which
collapsed into a short, wide letterbox on phones with gold text floating over
a busy photo. Add a max-width: 768px block that drops the fixed ratio, fills
the panel with the art under a stronger scrim, scales the title responsively,
and stacks the CTA buttons full-width. Desktop is unchanged.

Also collapse the intro-tagline-subtitle onto a single line so MDX stops
wrapping it in its own <p>, which produced an invalid <p>-in-<p> and a React
hydration error. Applied to the current (next) docs and the 3.14.0 snapshot.
@enoch85 enoch85 force-pushed the fix/mobile-friendly-docs branch from 374955e to 383880e Compare June 5, 2026 23:47
@enoch85 enoch85 merged commit 9160c36 into main Jun 5, 2026
3 checks passed
@enoch85 enoch85 deleted the fix/mobile-friendly-docs branch June 5, 2026 23: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