From edbbbaad48311d5d791183f724e819926c09e638 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 9 May 2022 23:24:35 +0300 Subject: don't use wide mode for anon viewers --- src/modules/interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/interface.js b/src/modules/interface.js index ed31b6ff..a86193ea 100644 --- a/src/modules/interface.js +++ b/src/modules/interface.js @@ -134,7 +134,7 @@ const interfaceMod = { commit('setLayoutHeight', value) }, // value is optional, assuming it was cached prior - setLayoutWidth ({ commit, state, rootGetters }, value) { + setLayoutWidth ({ commit, state, rootGetters, rootState }, value) { let width = value if (value !== undefined) { commit('setLayoutWidth', value) @@ -144,7 +144,7 @@ const interfaceMod = { const mobileLayout = width <= 800 const normalOrMobile = mobileLayout ? 'mobile' : 'normal' const { thirdColumnMode } = rootGetters.mergedConfig - if (thirdColumnMode === 'none') { + if (thirdColumnMode === 'none' || !rootState.users.currentUser) { commit('setLayoutType', normalOrMobile) } else { const wideLayout = width >= 1300 -- cgit v1.2.3-70-g09d2