Skip to content

Commit b2d4e99

Browse files
dorlugasigalCopilot
andcommitted
fix(frontend): add safe-area-inset-top to SessionsHub for PWA mode
Adds env(safe-area-inset-top) offset to the SessionsHub header padding and absolutely-positioned header buttons so the system status bar no longer overlaps the app content in mobile PWA mode. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 366da5f commit b2d4e99

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/frontend/src/components/SessionsHub/SessionsHub.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.header {
1010
position: relative;
11-
padding: 20px 16px 12px;
11+
padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 12px;
1212
border-bottom: 1px solid var(--border);
1313
text-align: center;
1414
}
@@ -32,7 +32,7 @@
3232

3333
.headerBtn {
3434
position: absolute;
35-
top: 16px;
35+
top: calc(16px + env(safe-area-inset-top, 0px));
3636
display: flex;
3737
align-items: center;
3838
justify-content: center;
@@ -64,7 +64,7 @@
6464

6565
.themeBtn {
6666
position: absolute;
67-
top: 16px;
67+
top: calc(16px + env(safe-area-inset-top, 0px));
6868
right: 16px;
6969
}
7070

0 commit comments

Comments
 (0)