Skip to content

Conversation

@y2-znt
Copy link
Contributor

@y2-znt y2-znt commented Oct 5, 2025

Fixes #505

This PR addresses an issue where the TanStack DB documentation layout overflowed horizontally on mobile devices.

Problem

The TanStack DB documentation page was not responsive on mobile devices, causing horizontal overflow and unwanted scrolling on small viewports.

Changes Made

  • Fixed paragraph width constraints: Replaced fixed w-3xl class with responsive max-w-[90vw] sm:max-w-[500px] lg:max-w-[800px] to prevent text overflow on mobile
  • Improved grid layout: Changed grid from grid-cols-2 to grid-cols-1 sm:grid-cols-2 to stack items vertically on mobile
  • Enhanced spacing: Updated gap classes to gap-x-4 sm:gap-x-10 lg:gap-x-12 for better mobile spacing
  • Added responsive container width: Applied max-w-[90vw] sm:max-w-[500px] lg:max-w-[650px] to the grid container

Before

image

After

image

Testing

  • ✅ Tested with Chrome DevTools mobile simulation
  • ✅ Confirmed no horizontal scrolling on mobile viewports
  • ✅ Maintained desktop layout integrity

The page now properly adapts to small viewports while preserving the existing desktop experience.

@netlify
Copy link

netlify bot commented Oct 5, 2025

Deploy Preview for tanstack ready!

Name Link
🔨 Latest commit bb2ae79
🔍 Latest deploy log https://app.netlify.com/projects/tanstack/deploys/69128357c92d6800089bf1a4
😎 Deploy Preview https://deploy-preview-506--tanstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 20 (🟢 up 3 from production)
Accessibility: 83 (no change from production)
Best Practices: 83 (no change from production)
SEO: 98 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@y2-znt y2-znt changed the title Fix: mobile responsiveness issues on TanStack DB documentation page Fix: mobile responsiveness issues on TanStack DB page Oct 5, 2025
@theotruvelot
Copy link

LGTM

Modified the DBVersionIndex component to enhance layout responsiveness by adjusting max-width properties and grid structure for better display on various screen sizes.
@SeanCassiere SeanCassiere force-pushed the fix/db-docs-responsive branch from c23d5fe to bb2ae79 Compare November 11, 2025 00:29
@SeanCassiere SeanCassiere merged commit e34b794 into TanStack:main Nov 11, 2025
6 checks passed
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.

Bug: TanStack DB documentation not responsive on mobile

4 participants