feat(web): polish mobile UX and responsive layouts across core flows#78
Open
affanraza84 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This Pull Request introduces high-fidelity visual and responsive layout adjustments across core flows to resolve layout stretching, overlay conflicts, safe area paddings, and dynamic resize issues on screen widths
< 768px(specifically mobile viewports).The desktop experience was already robust; these refinements guarantee the mobile UX feels equally native, premium, and tactile.
Detailed Changes
1. Tactile Bottom Drawer sheets in Exchange Flow
NewExchangeModalandExchangeDetailModal) now act as native-like bottom drawer sheets rather than centered desktop cards. They slide flush to the bottom, take full width, and scale to comfortable heights, making virtual keyboard interaction natural.items-end sm:items-center p-0 sm:p-4, while inner modal frames utilizerounded-t-3xl sm:rounded-2xl w-full h-[92vh] sm:h-auto max-h-[92vh] sm:max-h-[85vh].2. Z-Index and Safe Area Adjustments in Community Chat
pb-20on overlay wrappers withpb-[env(safe-area-inset-bottom,0px)]to keep message composers sitting cleanly above home indicators.3. Stateful resize listeners in Library Bookshelf
BOOKS_PER_SHELF) inside the wooden bookshelf are now stateful instead of relying on inline renders ofwindow.innerWidth(which causes hydration mismatches and orientation inconsistencies).Library.jsxto clean up the interface, keeping only the primary Racing Red styled button.4. Dual-Column Compact Grids in Discover
grid-cols-2) instead of stacking in single, screen-wide vertical block columns.hidden md:line-clamp-2to prevent excessive card heights.grid-cols-3) with optimized margins and text scaling (text-[9px] sm:text-sm) to preserve clean horizontal alignment.5. Compacting Reading Sessions modal
Modified Files
The following files have been modified:
apps/web/src/pages/Exchange.jsx— Exchange modals styling and drawer layoutapps/web/src/pages/Community.jsx— Mobile full-screen overlay z-index and safe area paddingsapps/web/src/pages/Library.jsx— Stateful window resize hook, dynamic bookshelf grouping, duplicate button removalapps/web/src/pages/Discover.jsx— Dual column layouts, stats row redesign, text clampsapps/web/src/components/Readingsessionmodal.jsx— Compact mobile spacing inside timer overlayVerification & Testing
360pxin simulation tools.Librarybookshelf groupings.closed issue #45