logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: edbbbaad48311d5d791183f724e819926c09e638
parent ce8722b0e67bd69cfcd5c43a311e0da0c5f6ce87
Author: Henry Jameson <me@hjkos.com>
Date:   Mon,  9 May 2022 23:24:35 +0300

don't use wide mode for anon viewers

Diffstat:

Msrc/components/settings_modal/tabs/general_tab.vue1+
Msrc/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 @@ -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 @@ -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