diff options
Diffstat (limited to 'src/modules/interface.js')
| -rw-r--r-- | src/modules/interface.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
