Skip to content

Fix mobile responsiveness for docs tables and code blocks#12

Merged
lemur47 merged 1 commit intomainfrom
feature/responsive-tables
Feb 15, 2026
Merged

Fix mobile responsiveness for docs tables and code blocks#12
lemur47 merged 1 commit intomainfrom
feature/responsive-tables

Conversation

@lemur47
Copy link
Owner

@lemur47 lemur47 commented Feb 15, 2026

Summary

  • Global table styles — added display: block; overflow-x: auto so wide tables scroll horizontally on mobile instead of overflowing the viewport
  • Docs grid fix — added min-width: 0 to .doc-content to override the CSS Grid default (min-width: auto) that prevented child elements from triggering overflow-x: auto
  • Text wrapping — added overflow-wrap: break-word to docs content so long inline text wraps on narrow screens

The root cause was a CSS Grid gotcha: grid children default to min-width: auto, refusing to shrink below their content's intrinsic width. Blog posts weren't affected because BlogLayout doesn't use CSS Grid.

Test plan

  • npm run build succeeds
  • Verified on iPhone 11 Pro: docs tables and code blocks now scroll, text wraps correctly
  • Blog pages unaffected (already worked)

🤖 Generated with Claude Code

Add global table styles with overflow-x scrolling. Fix docs grid
child refusing to shrink below content width (min-width: 0) so
that overflow-x on tables and code blocks actually triggers on
narrow viewports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying si-protocols with  Cloudflare Pages  Cloudflare Pages

Latest commit: 86c6c31
Status: ✅  Deploy successful!
Preview URL: https://0e90a277.si-protocols.pages.dev
Branch Preview URL: https://feature-responsive-tables.si-protocols.pages.dev

View logs

@lemur47 lemur47 merged commit 2166a99 into main Feb 15, 2026
8 checks passed
@lemur47 lemur47 deleted the feature/responsive-tables branch February 15, 2026 06:34
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