Skip to content

Commit 4cbd006

Browse files
committed
fix(Linux): Fix viewport height on Linux
1 parent c154153 commit 4cbd006

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/styles/layout.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,11 @@ html { overflow: hidden; }
4242
.app-loader .app-loader__title { color: $dark-theme-gray-lightest; }
4343
}
4444

45-
body.win32:not(.isFullScreen) .app .app__content {
45+
body:not(.darwin):not(.isFullScreen) .app .app__content {
4646
margin-top: $windows-title-bar-height;
4747
height: calc(100% - $windows-title-bar-height);
4848
}
4949

50-
body.linux .app .app__content {
51-
margin-top: $windows-title-bar-height;
52-
}
53-
5450
.app {
5551
.app__content {
5652
display: flex;
@@ -75,7 +71,7 @@ body.linux .app .app__content {
7571

7672
.electron-app-title-bar { z-index: 99999999; }
7773

78-
body:not(.win32) .window-draggable {
74+
body.darwin .window-draggable {
7975
height: 35px;
8076
left: 0;
8177
pointer-events: none;
@@ -86,7 +82,7 @@ body:not(.win32) .window-draggable {
8682
-webkit-app-region: drag;
8783
}
8884

89-
body.win32 .window-draggable {
85+
body:not(.darwin) .window-draggable {
9086
display: none;
9187
}
9288

0 commit comments

Comments
 (0)