Commit 06a07da
committed
fix(settings): Top content hidden on mobile
Because:
- Without viewport-fit=cover, browsers do not expose env(safe-area-inset-*) values to the page, causing content to render under the status bar or notch in embedded webview contexts
- The sticky header would pin beneath the native chrome on scroll without a matching safe area offset
This commit:
- Adds viewport-fit=cover to the viewport meta tag to unlock safe area inset values on iOS and Android
- Adds padding-top: env(safe-area-inset-top) to body to keep content below the status bar on page load
- Updates the sticky header's top offset to env(safe-area-inset-top) so it remains visible below the notch when scrolling
Closes #FXA-132031 parent fc5826e commit 06a07da
3 files changed
Lines changed: 9 additions & 2 deletions
File tree
- packages
- fxa-react/components/Header
- fxa-settings
- public
- src/styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
0 commit comments