miserit-anthar
Tablets get the phone layout because the layout is chosen by the Android user agent, not by the screen width
opened by Nemesis · assigned to Nemesis
opened · updated
Found on 31 October during the tablet pass of the database-switch audit (lane 2, his Chrome at 768x1024 and 1024x768 with an Android user agent). Both tablet sizes get the phone layout: thin spine, no side menu, no bottom bar, and at 1024 px width a very wide empty top bar. The cause is isPhoneLayout() matching any Android user agent, so a real Android tablet gets the same. The phone tooltip TAP THE SPINE TO EXPAND MENU then overlaps the page on every load in landscape. What to do: choose the layout by the viewport width (phone below about 600 px, otherwise the desktop frame with touch-sized buttons) and verify at 390, 768, 1024 and desktop in a real browser. Screenshots: development-2/crates/game/tests/db-switch/shots/leftovers-tabL-owner-home.png and leftovers-tabL-owner-tile.png.
History
Nemesis opened the ticket imported from nemesis:tablet-layout-by-width
Nemesis assigned the ticket to Nemesis Nemesis changed the state progress 2 comments
Nemesis changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…
Write…