Skip to content

Fit the app to short screens (split-screen beside the game) - #17

Merged
OGMods merged 1 commit into
mainfrom
short-viewport
Nov 13, 2026
Merged

OGMods merged 1 commit into
mainfrom
short-viewport

Conversation

@OGMods

@OGMods OGMods commented Nov 13, 2026

Copy link
Copy Markdown
Owner

A phone split-screened beside the game gives the app 330–450px of height, and the full chrome left the board a sliver. Below 600px tall (and below the 1024px sidebar breakpoint, so short desktop windows are unchanged):

  • Header folds into the readout. Its ⋯ menu sits beside the fold chevron, styled like it; Center view, Steps, Copy and Discard become the menu's first rows (two-press confirmations kept), and Share / map size always come along. With no readout the header stays as a logo-less corner pill.
  • Readout starts folded without writing the stored preference; opened, it drops the building counts the kind filter already shows.
  • Step mode is the steps bar alone: header and readout go, the arrows sit beside the step text, the slider is dropped.
  • Overflow menu opens as a top-layer popover so the card's clipping cannot cut it off; it closes on resize and when its host unmounts.
  • Step arrows (36px on touch) and the steps close button (32px) are smaller at every height.
  • Chrome anchored under the header floors its offset at the safe area when the header is hidden.

The Chronon pill is not shown while the header is folded into the readout.

Checked at 412×330, 412×420, 844×390, 412×880 and 1280×560 in headless Chrome. npm run check, npm run knip and the app tests (365) pass.

… bar alone in step mode

A phone split-screened beside the game gives the app 330-450px, and the full
chrome left the board a sliver. Below 600px tall (and under the sidebar
breakpoint, so short desktop windows keep their chrome):

- The header folds into the readout: its menu sits beside the fold chevron,
  styled like it, with Center view, Steps, Copy and Discard as its first rows
  (two-press confirmations kept). With no readout the header stays as a
  logo-less corner pill.
- The readout starts folded without touching the stored preference, and
  opened it leaves out the building counts the kind filter already shows.
- In step mode the header and readout go; the steps bar puts its arrows
  beside the step's line and drops the slider.
- The overflow menu opens as a top-layer popover so the card cannot clip it,
  closes on resize and on unmount.
- Step arrows and the steps close button are smaller at every height.
@OGMods
OGMods merged commit 80709a9 into main Nov 13, 2026
3 checks passed
@OGMods
OGMods deleted the short-viewport branch November 13, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant