Skip to content

Fix mobile layout overflow - speech bubbles and compact header#12

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-mobile-compatibility
Draft

Fix mobile layout overflow - speech bubbles and compact header#12
Copilot wants to merge 3 commits intomainfrom
copilot/add-mobile-compatibility

Conversation

Copy link
Copy Markdown

Copilot AI commented Nov 17, 2025

Speech bubbles and header stats overflow on mobile screens, making the game unplayable on phones. The header was also taking too much vertical space on mobile displays.

Changes

Viewport Configuration

  • Added viewport meta tag with width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no

Speech Bubble Positioning

  • Feissari bubble: Repositioned from left-1/2 -translate-x-2/3 to left-[10%] sm:left-1/2 sm:-translate-x-2/3 with max-w-[80vw] sm:max-w-none wrapper
  • User bubble: Adjusted from right-[15%] to right-[5%] sm:right-[15%] with viewport-constrained width max-w-[70vw] sm:max-w-[35vw]
  • Both bubbles constrained to max-w-[75vw] on mobile to prevent overflow

Header Stats Bar - Compact Mobile Design

  • Added flex-wrap to stats container for graceful wrapping
  • Ultra-compact mobile typography: text-[10px] leading-tight (labels), text-sm (values)
  • Minimal spacing: gap-1.5 sm:gap-6, p-1.5 sm:p-4
  • Smaller button: h-7 w-7 sm:h-10 sm:w-10
  • Smaller icons: w-3.5 h-3.5 sm:w-5 sm:h-5, star icons size={14}
  • Header now takes ~40% less vertical space on mobile

Input Area & Quick Actions

  • Button text: text-xs sm:text-sm
  • Input field: text-sm sm:text-base
  • Spacing: gap-1 sm:gap-2, mb-2 sm:mb-3, p-2 sm:p-4

All Screens

Applied consistent responsive patterns to start screen, game screen, and game-over screen.

Screenshots

Before - Mobile (375px):

After - Compact Header Mobile (375px):

After - Compact Header Mobile (390px):

[!WARNING]

Original prompt

This section details on the original issue you should resolve

<filter_complete></filter_complete>

<issue_title>Add mobile compability</issue_title>
<issue_description>Add optimization for mobile usage
Currently elements, especially speech bubbles go out of screen on mobile. Implement robust mobile compability</issue_description>

Comments on the Issue (you are @copilot in this section)

Original prompt

This section details on the original issue you should resolve

<issue_title>Add mobile compability</issue_title>
<issue_description>Add optimization for mobile usage
Currently elements, especially speech bubbles go out of screen on mobile. Implement robust mobile compability</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Hylje5000
Copy link
Copy Markdown
Collaborator

@copilot Can you make sure that the top bar doesnt take too much space. In the screenshots it looks like it takes over most of the display

Copilot AI changed the title [WIP] Add optimization for mobile usage Fix mobile layout overflow - speech bubbles and header responsiveness Nov 17, 2025
Copilot AI requested a review from Hylje5000 November 17, 2025 14:01
Copy link
Copy Markdown
Author

Copilot AI commented Nov 17, 2025

@copilot Can you make sure that the top bar doesnt take too much space. In the screenshots it looks like it takes over most of the display

Made the header much more compact on mobile in commit 17bca09. The changes include:

  • Reduced padding from p-2 to p-1.5 on mobile
  • Reduced all gaps from gap-2 to gap-1.5 on mobile
  • Smaller label text: text-[10px] with leading-tight (previously text-xs)
  • Smaller value text: text-sm (previously text-lg)
  • Smaller button: h-7 w-7 (previously h-8 w-8)
  • Smaller icons: w-3.5 h-3.5 (previously w-4 h-4)

Before (375px):
Before

After (375px):
After

The header now takes significantly less vertical space, leaving more room for the game content.

Copilot AI changed the title Fix mobile layout overflow - speech bubbles and header responsiveness Fix mobile layout overflow - speech bubbles and compact header Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add mobile compability

2 participants