Skip to content

Commit

Permalink
fix(Windows): Fix app size in fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Sep 5, 2019
1 parent 42f97b4 commit e210701
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default class AppStore extends Store {
this._offlineCheck.bind(this),
this._setLocale.bind(this),
this._muteAppHandler.bind(this),
this._handleFullScreen.bind(this),
]);
}
Expand Down Expand Up @@ -379,6 +380,16 @@ export default class AppStore extends Store {
}
}
_handleFullScreen() {
const body = document.querySelector('body');
if (this.isFullScreen) {
body.classList.add('isFullScreen');
} else {
body.classList.remove('isFullScreen');
}
}
// Helpers
_appStartsCounter() {
this.actions.settings.update({
Expand Down
2 changes: 1 addition & 1 deletion src/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ html { overflow: hidden; }
.app-loader .app-loader__title { color: $dark-theme-gray-lightest; }
}

body.win32 .app .app__content {
body.win32:not(.isFullScreen) .app .app__content {
height: calc(100% - 28px);
}

Expand Down

0 comments on commit e210701

Please sign in to comment.