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

pull/3157/head
YiZhi 8 months 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>
</div>
<div v-if="site.appearance" class="group">
<div v-if="site.appearance && site.appearance !== 'force-dark'" class="group">
<div class="item appearance">
<p class="label">
{{ theme.darkModeSwitchLabel || 'Appearance' }}

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

Loading…
Cancel
Save