Skip to content

Keep mobile chat title visible and make chat body expandable on small screens#6

Merged
TypeThe0ry merged 1 commit into
mainfrom
codex-edgk4d
Jun 27, 2026
Merged

Keep mobile chat title visible and make chat body expandable on small screens#6
TypeThe0ry merged 1 commit into
mainfrom
codex-edgk4d

Conversation

@TypeThe0ry

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the chat panel title remains visible on small screens instead of hiding the entire .msg-box, so users can always open the chat.
  • Make the chat body hidden by default on mobile but expandable via the existing toggle, preserving the collapsed/expanded UX.
  • Avoid the chat title overlapping main action buttons at common mobile widths (375px, 390px, 414px).

Description

  • In @media (max-width: 480px) changed .msg-box { display: none; } to display: flex; and moved its default bottom to 76px so the title bar sits above the prepare area.
  • Added a rule .room-playing .msg-box { bottom: 6px; } so in-game chat is anchored lower and does not collide with playing controls.
  • Kept .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.
  • Kept/adjusted .msg-box.collapsed { width: 150px; } to preserve the collapsed appearance.

Testing

  • Located and inspected relevant CSS selectors with rg/sed to confirm changes were applied to static/css/style.css. (succeeded)
  • Ran git diff --check to ensure no whitespace/errors were introduced. (succeeded)
  • Executed a small geometry sanity check script in Python that computed spacing for widths 375, 390, and 414 to verify the chat title does not overlap the prepare/play controls; assertions passed. (succeeded)
  • Attempted to start the app (node server.js) and run npm install to perform visual/browser verification, but node server.js failed due to missing runtime dependencies (Cannot find module 'express') and npm install did not complete in the environment, so end-to-end browser screenshots could not be obtained. (failed)

Codex Task

@TypeThe0ry TypeThe0ry marked this pull request as ready for review June 27, 2026 10:59
Copilot AI review requested due to automatic review settings June 27, 2026 10:59
@TypeThe0ry TypeThe0ry merged commit a564666 into main Jun 27, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) from display: none to display: flex and adjusted its vertical anchoring.
  • Added a mobile override for .room-playing .msg-box to position the chat differently during gameplay.
  • Introduced mobile-specific rules intended to hide .msg-body by default and reveal it when expanded.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread static/css/style.css
Comment on lines +2323 to 2327
display: flex;
}
.room-playing .msg-box {
bottom: 6px;
}
Comment thread static/css/style.css
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; }
@TypeThe0ry TypeThe0ry deleted the codex-edgk4d branch June 27, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants