Skip to content

Conversation

@y2-znt
Copy link

@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.

Modified the DBVersionIndex component to enhance layout responsiveness by adjusting max-width properties and grid structure for better display on various screen sizes.
@netlify
Copy link

netlify bot commented Oct 5, 2025

‼️ Deploy request for tanstack rejected.

Name Link
🔨 Latest commit 0d1cdd2

@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

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

3 participants