Skip to content

Fixed solution overlay for small areas#55

Merged
ma2bd merged 1 commit intomainfrom
fix/overlay
Nov 21, 2025
Merged

Fixed solution overlay for small areas#55
ma2bd merged 1 commit intomainfrom
fix/overlay

Conversation

@TudorEsan
Copy link
Collaborator

Motivation

Fix overlay hints overlapping with the game grid area, making them unreadable and interfering with gameplay.

Proposal

  • Increased z-index from 10 to 1000 for overlay boxes to ensure they render above game cells
  • Added smart text positioning that places labels above small overlay boxes (< 100px width or < 40px height) instead of inside them
  • Improved font size calculation for better responsiveness

Test Plan

Tested it manually here is a before and after

Before:
image

After:
image

@eldios eldios self-requested a review November 21, 2025 15:12
@ma2bd ma2bd merged commit 6b72d1d into main Nov 21, 2025
3 checks passed
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.

3 participants