Commit 2de0eb9df2

2de0eb9df28f1f9eca0b186518a6d2a2af4a4cd7

parent: 202c93e757

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-06-28 17:38 UTC

Update NavActions.vue

Layout: unified · split

docs/.vitepress/theme/components/NavActions.vue +8 −2
@@ -40,8 +40,8 @@ const toggleAppearance = inject<() => void>('toggle-appearance', () => {
4040 :aria-label="isDark ? 'Switch to light theme' : 'Switch to dark theme'"
4141 @click="toggleAppearance()"
4242 >
43 <Moon v-if="isDark" :size="ICON_SIZE" :stroke-width="ICON_STROKE" />
44 <Sun v-else :size="ICON_SIZE" :stroke-width="ICON_STROKE" />
43 <Moon :size="ICON_SIZE" :stroke-width="ICON_STROKE" class="nav-appearance-moon" />
44 <Sun :size="ICON_SIZE" :stroke-width="ICON_STROKE" class="nav-appearance-sun" />
4545 </button>
4646
4747 <VPSocialLink
@@ -160,4 +160,10 @@ const toggleAppearance = inject<() => void>('toggle-appearance', () => {
160160}
161161
162162.nav-action--settings :deep(.vpi-chevron-down) { display: none; }
163
164</style>
165
166<style>
167html.dark .nav-appearance-sun { display: none; }
168html:not(.dark) .nav-appearance-moon { display: none; }
163169</style>