Skip to content

Commit

Permalink
fix: v-show instead of v-if
Browse files Browse the repository at this point in the history
Signed-off-by: zubairrafi <[email protected]>
  • Loading branch information
walleeva2018 committed Aug 17, 2024
1 parent ee5076b commit 95fe66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/navbar-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
@click="toggleTheme"
>
<svg
v-if="colorMode.value == 'light'"
v-show="colorMode.value == 'light'"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
Expand All @@ -175,7 +175,7 @@
<path d="M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708" />
</svg>
<svg
v-if="colorMode.value == 'dark'"
v-show="colorMode.value == 'dark'"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
Expand Down

0 comments on commit 95fe66c

Please sign in to comment.