Skip to content

fix(website): prevent mobile horizontal overflow on docs pages#108

Merged
blove merged 1 commit into
mainfrom
fix/mobile-docs-overflow
Apr 10, 2026
Merged

fix(website): prevent mobile horizontal overflow on docs pages#108
blove merged 1 commit into
mainfrom
fix/mobile-docs-overflow

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 10, 2026

Summary

Code blocks and tables were causing horizontal overflow on mobile docs pages. Fixes:

  • docs-prose container + direct children get max-width: 100%
  • rehype-pretty-code figure elements get max-width: 100% + overflow: hidden
  • Pre component wrapper gets max-width: 100% + overflow: hidden, inner pre gets overflow-x: auto
  • Tables get display: block + overflow-x: auto for horizontal scrolling

Tested on 375px viewport — document.documentElement.scrollWidth === clientWidth (no horizontal scroll).

Test plan

  • nx build website — success
  • Puppeteer 375px viewport: no horizontal scroll possible
  • CI green
  • Manual check on mobile device

🤖 Generated with Claude Code

- docs-prose: add max-width: 100% to prose container and direct children
- rehype-pretty-code figure: max-width + overflow hidden
- CodeBlock Pre wrapper: max-width + overflow hidden, pre gets overflow-x auto
- tables: display block + overflow-x auto for horizontal scroll

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

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

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment Apr 10, 2026 11:51pm

Request Review

@blove blove merged commit 32acd61 into main Apr 10, 2026
14 checks passed
@blove blove deleted the fix/mobile-docs-overflow branch May 7, 2026 16:30
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