diff options
-rw-r--r-- | src/stores/AppStore.js | 11 | ||||
-rw-r--r-- | src/styles/layout.scss | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 6054e6721..315235ba4 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -94,6 +94,7 @@ export default class AppStore extends Store { | |||
94 | this._offlineCheck.bind(this), | 94 | this._offlineCheck.bind(this), |
95 | this._setLocale.bind(this), | 95 | this._setLocale.bind(this), |
96 | this._muteAppHandler.bind(this), | 96 | this._muteAppHandler.bind(this), |
97 | this._handleFullScreen.bind(this), | ||
97 | ]); | 98 | ]); |
98 | } | 99 | } |
99 | 100 | ||
@@ -379,6 +380,16 @@ export default class AppStore extends Store { | |||
379 | } | 380 | } |
380 | } | 381 | } |
381 | 382 | ||
383 | _handleFullScreen() { | ||
384 | const body = document.querySelector('body'); | ||
385 | |||
386 | if (this.isFullScreen) { | ||
387 | body.classList.add('isFullScreen'); | ||
388 | } else { | ||
389 | body.classList.remove('isFullScreen'); | ||
390 | } | ||
391 | } | ||
392 | |||
382 | // Helpers | 393 | // Helpers |
383 | _appStartsCounter() { | 394 | _appStartsCounter() { |
384 | this.actions.settings.update({ | 395 | this.actions.settings.update({ |
diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 58e9e3000..b18bd6dcf 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss | |||
@@ -32,7 +32,7 @@ html { overflow: hidden; } | |||
32 | .app-loader .app-loader__title { color: $dark-theme-gray-lightest; } | 32 | .app-loader .app-loader__title { color: $dark-theme-gray-lightest; } |
33 | } | 33 | } |
34 | 34 | ||
35 | body.win32 .app .app__content { | 35 | body.win32:not(.isFullScreen) .app .app__content { |
36 | height: calc(100% - 28px); | 36 | height: calc(100% - 28px); |
37 | } | 37 | } |
38 | 38 | ||