diff options
| author | Henry Jameson <me@hjkos.com> | 2022-04-05 18:38:05 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-04-05 18:38:05 +0300 |
| commit | 4a068483ed9b1334780402cbe64dfa3f4a0e8a3a (patch) | |
| tree | 4f65244922dbcb4f3fb534971aedbb0b62431ba3 /src/boot | |
| parent | 9e5037c71564c041c6bf518109d21e84df435855 (diff) | |
wide mode initial implementation + cleanup
Diffstat (limited to 'src/boot')
| -rw-r--r-- | src/boot/after_store.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 76832708..ce96141d 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -332,8 +332,11 @@ const checkOAuthToken = async ({ store }) => { } const afterStoreSetup = async ({ store, i18n }) => { - const width = windowWidth() - store.dispatch('setMobileLayout', width <= 800) + // TODO cleanup copypasta + const mobileLayout = windowWidth() <= 800 + const wideLayout = windowWidth() >= 1300 + const layoutType = wideLayout ? 'wide' : (mobileLayout ? 'mobile' : 'normal') + store.dispatch('setLayoutType', layoutType) FaviconService.initFaviconService() |
