Skip to content

Commit

Permalink
🐛 Fix mobile navbar theme switcher logo size
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jun 30, 2024
1 parent cb8e5b3 commit d172364
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ThemeSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ function toggleTheme(){
</script>

<template>
<Icon v-if="theme === 'dark'" name="iconoir:half-moon" class="w-8 h-8" @click="toggleTheme"/>
<Icon v-else-if="theme === 'light'" name="iconoir:sun-light" class="w-8 h-8" @click="toggleTheme"/>
<ClientOnly>
<Icon v-if="theme === 'dark'" name="iconoir:half-moon" class="w-8 h-8" @click="toggleTheme"/>
<Icon v-else-if="theme === 'light'" name="iconoir:sun-light" class="w-8 h-8" @click="toggleTheme"/>
</ClientOnly>
</template>

<style scoped>
Expand Down

0 comments on commit d172364

Please sign in to comment.