Skip to content

Commit

Permalink
fix(theme): theme switch is not hidden on force-dark (#3155)
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhi996 committed Oct 30, 2023
1 parent c343d93 commit 2276c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPNavBarExtra.vue
Expand Up @@ -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' }}
Expand Down
Expand Up @@ -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>
Expand Down

0 comments on commit 2276c1d

Please sign in to comment.