refactor(ui): modal card has hardcoded pixel dimensions — breaks on small screens #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
solitaire_engine/src/ui_modal.rshardcodes:max_width: Val::Px(720.0)min_width: Val::Px(360.0)On small Android devices (e.g. a 5" phone in portrait with 320dp usable width) the min-width of 360px is already wider than the screen, causing the modal to overflow or be clipped.
Affected file
solitaire_engine/src/ui_modal.rsFix
Replace hardcoded Px values with percentage-based widths:
This makes modals responsive on both phones and tablets without manual breakpoints.