Fix overlapping table UI on small screens #12
Loading…
Reference in a new issue
No description provided.
Delete branch "mobile-layout-fix"
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
On short/narrow phones (e.g. iPhone 13 in Safari) the table UI overlapped itself all over the place: the round label and trump card collided with the seat row, the bid banner and bid panel landed on top of my seat, and my seat spilled out of the felt.
Root cause: the table screen is a fixed-height flex column (top bar / felt / bid panel / hand). The felt's content — seat rows, round label, trump, played cards, my seat — is taller than the space left on small screens, and the table center was the only shrinkable element, so it collapsed to ~0 and its centered content overflowed in both directions.
Fix
overflow-y: auto) when the content still doesn't fit, so elements never overlap on any screen size. The table center keeps amin-contentheight so it never collapses below its content.Verified