mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-10 02:30:13 +00:00
don't use wide mode for anon viewers
This commit is contained in:
parent
ce8722b0e6
commit
edbbbaad48
2 changed files with 3 additions and 2 deletions
|
@ -72,6 +72,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ChoiceSetting
|
<ChoiceSetting
|
||||||
|
v-if="user"
|
||||||
id="thirdColumnMode"
|
id="thirdColumnMode"
|
||||||
path="thirdColumnMode"
|
path="thirdColumnMode"
|
||||||
:options="thirdColumnModeOptions"
|
:options="thirdColumnModeOptions"
|
||||||
|
|
|
@ -134,7 +134,7 @@ const interfaceMod = {
|
||||||
commit('setLayoutHeight', value)
|
commit('setLayoutHeight', value)
|
||||||
},
|
},
|
||||||
// value is optional, assuming it was cached prior
|
// value is optional, assuming it was cached prior
|
||||||
setLayoutWidth ({ commit, state, rootGetters }, value) {
|
setLayoutWidth ({ commit, state, rootGetters, rootState }, value) {
|
||||||
let width = value
|
let width = value
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
commit('setLayoutWidth', value)
|
commit('setLayoutWidth', value)
|
||||||
|
@ -144,7 +144,7 @@ const interfaceMod = {
|
||||||
const mobileLayout = width <= 800
|
const mobileLayout = width <= 800
|
||||||
const normalOrMobile = mobileLayout ? 'mobile' : 'normal'
|
const normalOrMobile = mobileLayout ? 'mobile' : 'normal'
|
||||||
const { thirdColumnMode } = rootGetters.mergedConfig
|
const { thirdColumnMode } = rootGetters.mergedConfig
|
||||||
if (thirdColumnMode === 'none') {
|
if (thirdColumnMode === 'none' || !rootState.users.currentUser) {
|
||||||
commit('setLayoutType', normalOrMobile)
|
commit('setLayoutType', normalOrMobile)
|
||||||
} else {
|
} else {
|
||||||
const wideLayout = width >= 1300
|
const wideLayout = width >= 1300
|
||||||
|
|
Loading…
Reference in a new issue