Fix: mobile responsiveness issues on TanStack DB page #506
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
w-3xlclass with responsivemax-w-[90vw] sm:max-w-[500px] lg:max-w-[800px]to prevent text overflow on mobilegrid-cols-2togrid-cols-1 sm:grid-cols-2to stack items vertically on mobilegap-x-4 sm:gap-x-10 lg:gap-x-12for better mobile spacingmax-w-[90vw] sm:max-w-[500px] lg:max-w-[650px]to the grid containerBefore
After
Testing
The page now properly adapts to small viewports while preserving the existing desktop experience.