aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-05-09 23:24:35 +0300
committerHenry Jameson <me@hjkos.com>2022-05-09 23:25:41 +0300
commitedbbbaad48311d5d791183f724e819926c09e638 (patch)
tree7679aa8f93e3e79bc2e342447cdb92b74b7130f3 /src
parentce8722b0e67bd69cfcd5c43a311e0da0c5f6ce87 (diff)
don't use wide mode for anon viewers
Diffstat (limited to 'src')
-rw-r--r--src/components/settings_modal/tabs/general_tab.vue1
-rw-r--r--src/modules/interface.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue
index db8718cf..79c69449 100644
--- a/src/components/settings_modal/tabs/general_tab.vue
+++ b/src/components/settings_modal/tabs/general_tab.vue
@@ -72,6 +72,7 @@
</li>
<li>
<ChoiceSetting
+ v-if="user"
id="thirdColumnMode"
path="thirdColumnMode"
:options="thirdColumnModeOptions"
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