Start menu overflows the game screen on phones since the floating choice box #70
Notifications
Due Date
No due date set.
Blocks
Reference: kawa/Crystal#70
Reference in new issue
Block a user
Regression from
525ff09(#67, choices in a box above the text box).Symptom
On a phone viewport (Playwright
webkitproject = iPhone 13, portrait), the start menu box is taller than the space above the text box. It is positioned withbottom: calc(100% + 13px)andmax-height: min(60vh, 30em), which does not account for the game screen's height, so its top overflows the screen: POKéDEX, POKéMON and PACK are clipped and cannot be tapped. Only CHRIS, SAVE, OPTION and EXIT are visible. Hit-testing at the PACK button lands on.screen-bezel.Keyboard/D-pad navigation still moves the cursor, but a touch player cannot reach the top entries.
Reproduction
Fails with
locator.click: Test timeout of 30000ms exceeded … <div class="screen-bezel">…</div> intercepts pointer eventson#dialogue-choice→PACK.Bisect:
5546e57passes,525ff09fails (3da669aand7afc87dstill fail).Affected tests (12, all WebKit)
They fail locally and in private CI run 136 (#66).
Expected
The choice box fits inside the game screen above the text box on every supported viewport, scrolling when its entries don't fit, so every entry is visible and tappable. The 12 WebKit tests pass.
Commit:
62fe4bf