fix(theme): theme switch is not hidden on force-dark (#3155)

pull/3157/head
YiZhi 1 year ago committed by GitHub
parent c343d938fc
commit 2276c1d4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ const hasExtraContent = computed(
</template> </template>
</div> </div>
<div v-if="site.appearance" class="group"> <div v-if="site.appearance && site.appearance !== 'force-dark'" class="group">
<div class="item appearance"> <div class="item appearance">
<p class="label"> <p class="label">
{{ theme.darkModeSwitchLabel || 'Appearance' }} {{ theme.darkModeSwitchLabel || 'Appearance' }}

@ -6,7 +6,7 @@ const { site, theme } = useData()
</script> </script>
<template> <template>
<div v-if="site.appearance" class="VPNavScreenAppearance"> <div v-if="site.appearance && site.appearance !== 'force-dark'" class="VPNavScreenAppearance">
<p class="text"> <p class="text">
{{ theme.darkModeSwitchLabel || 'Appearance' }} {{ theme.darkModeSwitchLabel || 'Appearance' }}
</p> </p>

Loading…
Cancel
Save