Skip to content

Commit

Permalink
fix(theme): incorrect display non-local icons, close #134
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Aug 8, 2024
1 parent 85a923f commit 64e9a0f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions theme/src/client/components/VPIconify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ const bind = computed<any>(() => ({

<template>
<ClientOnly>
<span v-if="!loaded" class="vp-icon" :style="{ color, width: size, height: size }" />
<span v-if="!loaded" class="vp-icon iconify" :style="{ color, width: size, height: size }" />
<OfflineIcon
v-else-if="icon"
class="vp-icon"
class="vp-icon iconify"
v-bind="bind"
/>
</ClientOnly>
</template>

<style>
.vp-icon.iconify {
background-color: unset;
}
</style>

0 comments on commit 64e9a0f

Please sign in to comment.