aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-05 13:20:42 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-05 13:20:42 +0200
commite210701bcfc083fecea2a9fef6458afb6f81d0d8 (patch)
treee32343655a2248ab26ce110dd9db2e8be97ad628
parentfix(Windows): Fix app to be cropped at the bottom on Windows (diff)
downloadferdium-app-e210701bcfc083fecea2a9fef6458afb6f81d0d8.tar.gz
ferdium-app-e210701bcfc083fecea2a9fef6458afb6f81d0d8.tar.zst
ferdium-app-e210701bcfc083fecea2a9fef6458afb6f81d0d8.zip
fix(Windows): Fix app size in fullscreen
-rw-r--r--src/stores/AppStore.js11
-rw-r--r--src/styles/layout.scss2
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
35body.win32 .app .app__content { 35body.win32:not(.isFullScreen) .app .app__content {
36 height: calc(100% - 28px); 36 height: calc(100% - 28px);
37} 37}
38 38