Keep mobile chat title visible and make chat body expandable on small screens#6
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the mobile responsive CSS for the in-room chat panel to keep the chat title visible on small screens and to support a collapsed/expanded chat experience without hiding the entire panel.
Changes:
- In
@media (max-width: 480px), changed the chat panel (.msg-box) fromdisplay: nonetodisplay: flexand adjusted its vertical anchoring. - Added a mobile override for
.room-playing .msg-boxto position the chat differently during gameplay. - Introduced mobile-specific rules intended to hide
.msg-bodyby default and reveal it when expanded.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+2323
to
2327
| display: flex; | ||
| } | ||
| .room-playing .msg-box { | ||
| bottom: 6px; | ||
| } |
Comment on lines
2328
to
2330
| .msg-box .msg-body { display: none; } | ||
| .msg-box:not(.collapsed) .msg-body { display: flex; } | ||
| .msg-box.collapsed { width: 150px; } |
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.
Motivation
.msg-box, so users can always open the chat.Description
@media (max-width: 480px)changed.msg-box { display: none; }todisplay: flex;and moved its defaultbottomto76pxso the title bar sits above the prepare area..room-playing .msg-box { bottom: 6px; }so in-game chat is anchored lower and does not collide with playing controls..msg-box .msg-body { display: none; }and added.msg-box:not(.collapsed) .msg-body { display: flex; }so the chat body is hidden by default but shown when the panel is expanded..msg-box.collapsed { width: 150px; }to preserve the collapsed appearance.Testing
rg/sedto confirm changes were applied tostatic/css/style.css. (succeeded)git diff --checkto ensure no whitespace/errors were introduced. (succeeded)375,390, and414to verify the chat title does not overlap the prepare/play controls; assertions passed. (succeeded)node server.js) and runnpm installto perform visual/browser verification, butnode server.jsfailed due to missing runtime dependencies (Cannot find module 'express') andnpm installdid not complete in the environment, so end-to-end browser screenshots could not be obtained. (failed)Codex Task