Skip to content
Permalink
Browse files

fix(Windows): Fix app size in fullscreen

  • Loading branch information...
adlk committed Sep 5, 2019
1 parent 42f97b4 commit e210701bcfc083fecea2a9fef6458afb6f81d0d8
Showing with 12 additions and 1 deletion.
  1. +11 −0 src/stores/AppStore.js
  2. +1 −1 src/styles/layout.scss
@@ -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),
]);
}

@@ -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({
@@ -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);
}

0 comments on commit e210701

Please sign in to comment.
You can’t perform that action at this time.