mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
757967bf18
Both renderers read window.innerWidth once while rendering, so the button that turns GPS on was decided by the width the map happened to see when it mounted: a phone turned sideways crosses the 768px cut and kept whatever it had, and turning back did not bring it home either. Both now use the same useIsPhone the shell switches on. The test stub for matchMedia answers width queries from window.innerWidth and re-evaluates on a resize, so a breakpoint can be driven from a test the way the browser drives it.