Fix white promotion menu layout drift and tile-size mismatch - #53
Draft
mterczynski with Copilot wants to merge 4 commits into
Draft
Fix white promotion menu layout drift and tile-size mismatch#53mterczynski with Copilot wants to merge 4 commits into
mterczynski with Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/mterczynski/chess/sessions/cec63a7a-dc82-425e-beee-7e6e2f34f376 Co-authored-by: mterczynski <27309340+mterczynski@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mterczynski/chess/sessions/cec63a7a-dc82-425e-beee-7e6e2f34f376 Co-authored-by: mterczynski <27309340+mterczynski@users.noreply.github.com>
…tent Agent-Logs-Url: https://github.com/mterczynski/chess/sessions/cec63a7a-dc82-425e-beee-7e6e2f34f376 Co-authored-by: mterczynski <27309340+mterczynski@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix promotion menu alignment and sizing issues for white
Fix white promotion menu layout drift and tile-size mismatch
May 19, 2026
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.
When playing as white, the promotion menu was horizontally misaligned, caused slight board width distortion when opened, and rendered promotion tiles larger than board tiles. This PR aligns the overlay to board columns and normalizes promotion tile geometry to match board tiles exactly.
Promotion menu positioning and sizing
100 / 8) so the menu aligns to the selected file regardless of board scaling.width: 100%+aspect-ratio: 1for exact square parity with board tiles.Border/layout isolation
data-board-file), so the promotion overlay no longer participates in board border rules.Implementation note (key change)