Skip to content

Fix the mobile controls sheet: a visible, reliable way out - #45

Merged
PouyanJay merged 1 commit into
mainfrom
mobile-controls-sheet-close
Jul 27, 2026
Merged

Fix the mobile controls sheet: a visible, reliable way out#45
PouyanJay merged 1 commit into
mainfrom
mobile-controls-sheet-close

Conversation

@PouyanJay

Copy link
Copy Markdown
Owner

On a real iPhone the controls sheet used 88vh (the LARGE viewport behind Safaris toolbars), so it grew taller than the screen and its header - with the close button - slid up behind the top bar: no visible way back to the main view.

  • Cap with 100dvh minus the top bar, so the sheet always sits below it.
  • Pin the header (title + close) sticky to the sheet top.
  • Phone close is a clear X, not the docked panels left chevron.
  • Heavier scrim on a phone so the bench reads as dimmed-away, not a second UI showing through.

Verified on WebKit: close button in view + sticky, tapping it returns to the main view. lint 0, check 0, unit 817/817, e2e (responsive) 5/5.

On a real phone the controls sheet used `88vh`, i.e. the LARGE viewport behind
Safari's toolbars, so it grew taller than the screen and its header - with the
close button - slid up behind the top bar. There was no visible way back to the
main view.

- Cap the sheet with `100dvh` minus the top bar, so it always sits below it.
- Pin the header (title + close) sticky to the top of the sheet.
- Phone close is a clear X (dismiss), not the docked panel's left chevron.
- Heavier scrim on a phone so the bench reads as dimmed-away, not a second UI
  showing through.
@PouyanJay
PouyanJay merged commit e84e907 into main Jul 27, 2026
@PouyanJay
PouyanJay deleted the mobile-controls-sheet-close branch July 27, 2026 00:43
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