Skip to content

Commit 90c16e6

Browse files
committed
fix: offset content under translucent topbar
1 parent 1b5acd8 commit 90c16e6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/styles/main.css‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
-webkit-app-region: no-drag;
99
min-height: 0;
1010
min-width: 0;
11+
--main-topbar-height: 44px;
1112
}
1213

1314
.main-header {
@@ -39,6 +40,7 @@
3940
top: 0;
4041
z-index: 3;
4142
backdrop-filter: blur(18px) saturate(1.2);
43+
min-height: var(--main-topbar-height);
4244
}
4345

4446
.main-topbar-left {
@@ -104,7 +106,7 @@
104106
min-height: 0;
105107
min-width: 0;
106108
-webkit-app-region: no-drag;
107-
padding: 0;
109+
padding: var(--main-topbar-height) 0 0;
108110
grid-column: 1;
109111
grid-row: 1 / 3;
110112
}
@@ -117,7 +119,7 @@
117119
border-left: 1px solid var(--border-subtle);
118120
background: var(--surface-right-panel);
119121
height: 100%;
120-
padding-top: 0;
122+
padding-top: var(--main-topbar-height);
121123
padding-bottom: 0;
122124
grid-column: 2;
123125
grid-row: 1 / 5;

0 commit comments

Comments
 (0)