Commit b936967
mobile: drawer fills behind the iOS toolbar + instant close (no delay)
Two remaining iOS menu issues from the latest screen recording:
- Menu not taking full height: the drawer/overlay were sized to the dynamic viewport
(100dvh = the toolbar-shown height), so they ended above the Safari toolbar with a dark
band below. Size them to the LARGE viewport instead (100lvh, with a 100vh fallback) so
they fill the full screen behind the translucent toolbar — no dark band. This is safe
because both are display:none when closed (#283), so they can't pin the layout viewport.
- ~0.5s delay on close: the drawer's `display 0.25s allow-discrete` exit kept it in the
layout for 0.25s before display:none, so iOS released its pinned viewport (and cleared
the gap) only after that delay. Move the transition to the open-state rule so closing is
instant; the slide-in still animates (open-state transition + @starting-style).
Verified in WebKit: slide-in animates; after close both compute display:none within ~40ms
(was ~250ms); drawer/overlay heights resolve to the full viewport.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 827d889 commit b936967
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
118 | | - | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
0 commit comments