Fix: Mobile layout broken on game-room page #60 #159
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.
Fix: Game room page mobile responsiveness (#60)
📝 Description
This PR addresses the mobile layout issues on the
/game-roompage. The previous three-column layout was not responsive, causing elements to overlap, misalign, and become unusable on small screens.This fix implements a mobile-first, fully responsive design that stacks vertically on mobile devices and gracefully transitions back to the original three-column layout on desktops.
✨ What's Fixed
🛠️ How This Was Achieved
flex-collayout by default, switching tolg:flex-rowon large screens.order-*utilities to change the visual sequence of the columns on mobile without altering the DOM structure.lg:gap-x-*on the parent container for clean, consistent spacing on desktop.lg:,sm:) to widths, padding, margins, and font sizes.📸 Before & After Screenshots
Before (Mobile View):
Elements are overlapping and misaligned, making the page unusable.
After (Mobile View):
The layout is now stacked, aligned, and fully interactive.
🧪 How to Test
/game-roompage.Related Issue
Closes #60