You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Layout breaks on mobile: header text overlaps and panels overflow at 375px #5
The app is not usable on phones. No CSS media queries exist anywhere in src/index.css, and every panel uses fixed widths and absolute positions sized for desktop.
Evidence
Measured in Chromium with a 375x812 mobile viewport (DPR 2, touch) against the production build:
Header: all three sections overlap. The title spans x=31 to 344 px. Over it sit the badge (18 to 113), the coordinates (56 to 185), and the UTC clock (215 to 357). None of the text is readable. See .app-header / .app-title (https://github.com/GeoBradDev/WebGPU-Example/blob/1f58d46/src/index.css#L74-L128), where the title is 17px with 0.35em letter-spacing and nowrap.
Layer panel: a fixed 196px wide (#L218-L227), covering more than half the map width. The stress count label is clipped ("0 P"). That also happens at 1440px wide.
Feature popup: a fixed 288px wide, anchored bottom-left. At 500px wide it covers the GPU panel and the attribution.
html, body { overflow: hidden } means clipped content cannot be scrolled into view.
Steps to reproduce
Open the app in Chrome DevTools device mode at 375x812.
Look at the header, the bottom GPU panel, and the layer panel.
Recommended fix
Add responsive breakpoints, for example at 640px and 1024px.
Header: hide or stack the coordinates and clock, and shrink the title's letter-spacing and font size.
Make the layer panel a collapsible drawer or bottom sheet on small screens.
Let the GPU panel wrap or collapse to key stats, and constrain it with max-width: calc(100vw - 32px).
Make the popup full-width (bottom sheet) on narrow screens, and do not let it overlap other panels.
Give .stress-count enough width for "5.0M PTS".
Acceptance criteria
At 375px, 768px, and 1440px wide, no text overlaps and no panel extends past the viewport.
The map stays at least 60% visible at 375px with panels collapsed.
Additional evidence from the #4 work (PR #16): the stress count readout ("0 PTS") is clipped at the panel's right edge at every viewport width, not just on mobile. Cause: .stress-slider keeps Chrome's default width of about 129px, so 129 + 8px gap + the 56px min-width of .stress-count is more than the roughly 172px of usable width inside the 196px panel (src/index.css, .stress-row / .stress-count). Fix in this issue: give the slider flex: 1; min-width: 0 (or an explicit width) so the readout fits "5.0M PTS". This is covered by the existing acceptance criterion that no text overflows at 375, 768, and 1440px.
Activity
GeoBradDev commentedon Nov 7, 2026
Additional evidence from the #4 work (PR #16): the stress count readout ("0 PTS") is clipped at the panel's right edge at every viewport width, not just on mobile. Cause:
.stress-sliderkeeps Chrome's default width of about 129px, so 129 + 8px gap + the 56px min-width of.stress-countis more than the roughly 172px of usable width inside the 196px panel (src/index.css,.stress-row/.stress-count). Fix in this issue: give the sliderflex: 1; min-width: 0(or an explicit width) so the readout fits "5.0M PTS". This is covered by the existing acceptance criterion that no text overflows at 375, 768, and 1440px.Merge pull request #17 from GeoBradDev/issue-5-layout-breaks-on-mobile