diff options
author | OzoneGrif | 2020-02-28 12:12:03 +0100 |
---|---|---|
committer | GitHub | 2020-02-28 12:12:03 +0100 |
commit | fe699fb16018aa22b121b48a85ef228f4b5c6bfd (patch) | |
tree | a85a29524e329f16d0131853cfab426307ce529e /viewer | |
parent | 8d889762872501eebd5edb5d7cacddfd4cd55ad4 (diff) | |
parent | df98cc52700f77b06ce986ccb2137ec055a0e66c (diff) | |
download | ldgallery-fe699fb16018aa22b121b48a85ef228f4b5c6bfd.tar.gz |
Merge pull request #170 from pacien/oz-responsive-left-panel
viewer: show/hide the left panel depending on the viewport's width at…
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/.env | 1 | ||||
-rw-r--r-- | viewer/src/store/uiStore.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/viewer/.env b/viewer/.env index 0914292..99efa3d 100644 --- a/viewer/.env +++ b/viewer/.env | |||
@@ -3,3 +3,4 @@ | |||
3 | VUE_APP_I18N_LOCALE=en | 3 | VUE_APP_I18N_LOCALE=en |
4 | VUE_APP_I18N_FALLBACK_LOCALE=en | 4 | VUE_APP_I18N_FALLBACK_LOCALE=en |
5 | VUE_APP_DATA_URL=./ | 5 | VUE_APP_DATA_URL=./ |
6 | VUE_APP_FULLWIDTH_LIMIT=1216 | ||
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index 21f9ce9..2bd315c 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts | |||
@@ -27,7 +27,7 @@ const VuexModule = createModule({ | |||
27 | export default class UIStore extends VuexModule { | 27 | export default class UIStore extends VuexModule { |
28 | 28 | ||
29 | fullscreen: boolean = false; | 29 | fullscreen: boolean = false; |
30 | fullWidth: boolean = true; | 30 | fullWidth: boolean = window.innerWidth < Number(process.env.VUE_APP_FULLWIDTH_LIMIT); |
31 | searchMode: boolean = false; | 31 | searchMode: boolean = false; |
32 | 32 | ||
33 | // --- | 33 | // --- |