Skip to content

Commit

Permalink
fix(Linux): Fix viewport height on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Mar 22, 2022
1 parent c154153 commit 4cbd006
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,11 @@ html { overflow: hidden; }
.app-loader .app-loader__title { color: $dark-theme-gray-lightest; }
}

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

body.linux .app .app__content {
margin-top: $windows-title-bar-height;
}

.app {
.app__content {
display: flex;
Expand All @@ -75,7 +71,7 @@ body.linux .app .app__content {

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

body:not(.win32) .window-draggable {
body.darwin .window-draggable {
height: 35px;
left: 0;
pointer-events: none;
Expand All @@ -86,7 +82,7 @@ body:not(.win32) .window-draggable {
-webkit-app-region: drag;
}

body.win32 .window-draggable {
body:not(.darwin) .window-draggable {
display: none;
}

Expand Down

0 comments on commit 4cbd006

Please sign in to comment.