Skip to content

Commit

Permalink
fix: code copy icon transition after @nuxt/icon update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Nov 21, 2024
1 parent 7295e57 commit 07964a8
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions components/content/CodeCopy.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<template>
<div class="flex">
<Transition name="fade" mode="out-in">
<Icon
v-if="copied === false"
name="lucide:copy"
class="block cursor-pointer self-center text-muted-foreground hover:text-primary"
@click="handleClick"
/>
<Icon
v-else
ref="checkIconRef"
name="lucide:check"
class="block cursor-pointer self-center text-muted-foreground hover:text-primary"
/>
<div v-if="copied === false">
<Icon
name="lucide:copy"
class="block cursor-pointer self-center text-muted-foreground hover:text-primary"
@click="handleClick"
/>
</div>
<div v-else>
<Icon
ref="checkIconRef"
name="lucide:check"
class="block cursor-pointer self-center text-muted-foreground hover:text-primary"
/>
</div>
</Transition>
</div>
</template>
Expand Down

0 comments on commit 07964a8

Please sign in to comment.