Repository navigation
Commit acb08c0
Fix the app shell on phones, and stop the button eating list content
Three bugs, two of them the same mistake in different places.
The shell was min-h-[100svh], so anything marginally too tall grew the
page and the whole document scrolled. On a phone that also collapses the
browser toolbar mid-scroll, which resizes the viewport and reflows
everything — the "window resizes and it's a mess". An app shell should
be exactly the viewport and never scroll; the panes inside it scroll.
Now h-[100svh] with overflow-hidden, plus the min-h-0 that flex children
need in order to actually shrink.
The map used h-full — a percentage height resolved against a flex-basis
parent, which is unreliable on mobile Safari. The container came out
zero-height and Google had nothing to render into, so the map simply
didn't appear. It's absolutely positioned against its already-relative
pane now, which is unambiguous.
And the floating "+ new date" button sat on top of the last card in any
scrolling list. Every pane it can float over now reserves space beneath
its content so the list scrolls clear of it.
Verified at 375: page height exactly 812, no overflow either axis, map
pane 649px tall, 44px clearance under the last card. At 1400: three
panes, no overflow, 70px clearance.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent f350889 commit acb08c0
3 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments