Skip to content

Commit

Permalink
chore: add div
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 5, 2024
1 parent 2a127ae commit 7571675
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/Price.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ const isOutdated = computed(() => {
<Tooltip>
<TooltipTrigger as-child>
<div>
<span>{{ log.price }}</span>
</div>
<div>
<span :class="{ 'text-red': log.percent < 100, 'text-green': log.percent > 100 }"
>{{ log.percent }}%</span
>
<div>
<span>{{ log.price }}</span>
</div>
<div>
<span :class="{ 'text-red': log.percent < 100, 'text-green': log.percent > 100 }"
>{{ log.percent }}%</span
>
</div>
</div>
</TooltipTrigger>
<TooltipContent>
Expand Down

0 comments on commit 7571675

Please sign in to comment.