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 () {
return this.$store.state.config.expertLevel
},
isMobileLayout () {
return this.$store.state.interface.layoutType === 'mobile'
}
},
methods: {

View file

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