Simplify mobile Hand & Brain UI - display pieces in single row#196
Merged
Conversation
Minor Bug Fixes
fix: handle missing maia analysis from backend
Improve play controls in Play Against Maia + Play Hand & Brain
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: kevinjosethomas <46242684+kevinjosethomas@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Simplify mobile Hand & Brain UI
Simplify mobile Hand & Brain UI - display pieces in single row
Aug 5, 2025
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.
This PR addresses the mobile usability issue in the Hand & Brain chess mode where players had to scroll to see all piece selection options.
Problem
The piece selection UI in
HandBrainPlayControlsused a fixed 3-column grid layout, causing chess pieces to be displayed in 2 rows of 3 pieces each. On mobile devices, this often required scrolling to access all piece options, creating a poor user experience.Solution
Modified the piece selection layout to be responsive:
grid-cols-6md:grid-cols-3Key Changes
grid-cols-3→grid-cols-6 md:grid-cols-3max-w-48→max-w-full md:max-w-48h-12 w-12→h-10 w-10 md:h-12 md:w-12h-6 w-6→h-5 w-5 md:h-6 md:w-6gap-2→gap-1 md:gap-2Visual Results
Mobile Layout - Single Row (No Scrolling Required):

Desktop Layout - Original 2×3 Grid Preserved:

The solution is minimal and surgical, preserving all existing functionality while eliminating the mobile scrolling issue. Players can now see and access all piece options at a glance on mobile devices.
Fixes #195.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
dock2.csslab.canext-server (v15.4.3)(dns block)fonts.googleapis.comnode /home/REDACTED/work/maia-platform-frontend/maia-platform-frontend/node_modules/.bin/next build(dns block)next-server (v15.4.3)(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.