diff options
author | Zero~Informatique | 2020-02-28 04:05:02 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-28 04:05:02 +0100 |
commit | 5672ee664abece41adeb59a8b2863d58d1b9b380 (patch) | |
tree | 33754f4ba6a0ca0fa3b098efe9127e8570a9a06c | |
parent | afa8a533ebb6943405cc5933167634c144e7f8c7 (diff) | |
download | ldgallery-5672ee664abece41adeb59a8b2863d58d1b9b380.tar.gz |
viewer: show/hide the left panel depending on the viewport's width at init
GitHub: Resolves #103
-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..4721300 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=1500 | ||
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index 1e63b3e..1d0d62f 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 | // --- |