Skip to content

Commit 6d52af7

Browse files
committed
Account for iOS safe area in PWA topbar and main content
1 parent e1d17b5 commit 6d52af7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Flip spending flow tooltip bubble to left side on mobile when near end of month
44
* Fix spending flow bubble clipping on desktop by allowing SVG overflow
5+
* Fix mobile PWA topbar overlapping with iOS safe area
56

67
### 1.12.1: 2026-03-29
78

src/styles/layout.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
left: 0;
1515
right: 0;
1616
z-index: 30;
17-
height: 3.5rem;
17+
height: calc(3.5rem + env(safe-area-inset-top, 0px));
18+
padding-top: env(safe-area-inset-top, 0px);
1819
align-items: center;
1920
justify-content: space-between;
20-
padding: 0 0.5rem;
21+
padding-left: 0.5rem;
22+
padding-right: 0.5rem;
2123
background-color: color-mix(in srgb, var(--sidebar) 75%, transparent);
2224
backdrop-filter: blur(16px) saturate(1.5);
2325
-webkit-backdrop-filter: blur(16px) saturate(1.5);
@@ -88,7 +90,7 @@
8890

8991
/* Main content */
9092
.l-main {
91-
padding-top: 3.5rem;
93+
padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
9294
transition: padding-left 300ms ease;
9395
}
9496

0 commit comments

Comments
 (0)