hide style tab on mobile

This commit is contained in:
Henry Jameson 2024-12-01 22:15:55 +02:00
parent 098087a722
commit 13c482ea2a
2 changed files with 5 additions and 1 deletions

View file

@ -67,6 +67,9 @@ const SettingsModalContent = {
}, },
expertLevel () { expertLevel () {
return this.$store.state.config.expertLevel return this.$store.state.config.expertLevel
},
isMobileLayout () {
return this.$store.state.interface.layoutType === 'mobile'
} }
}, },
methods: { methods: {

View file

@ -21,6 +21,7 @@
<AppearanceTab /> <AppearanceTab />
</div> </div>
<div <div
v-if="expertLevel > 0 && !isMobileLayout"
:label="$t('settings.style.themes3.editor.title')" :label="$t('settings.style.themes3.editor.title')"
icon="palette" icon="palette"
data-tab-name="style" data-tab-name="style"
@ -28,7 +29,7 @@
<StyleTab /> <StyleTab />
</div> </div>
<div <div
v-if="expertLevel > 0" v-if="expertLevel > 0 && !isMobileLayout"
:label="$t('settings.theme_old')" :label="$t('settings.theme_old')"
icon="paint-brush" icon="paint-brush"
data-tab-name="theme" data-tab-name="theme"