commit: 13c482ea2a70bec58eb011910c157c9bf3eadf0a
parent 098087a7220099576102cc438a692d580b1a29c5
Author: Henry Jameson <me@hjkos.com>
Date: Sun, 1 Dec 2024 22:15:55 +0200
hide style tab on mobile
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/components/settings_modal/settings_modal_user_content.js b/src/components/settings_modal/settings_modal_user_content.js
@@ -67,6 +67,9 @@ const SettingsModalContent = {
},
expertLevel () {
return this.$store.state.config.expertLevel
+ },
+ isMobileLayout () {
+ return this.$store.state.interface.layoutType === 'mobile'
}
},
methods: {
diff --git a/src/components/settings_modal/settings_modal_user_content.vue b/src/components/settings_modal/settings_modal_user_content.vue
@@ -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"