Skip to content

Commit

Permalink
main-menu: Use regular icons instead of Iconify
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Aug 7, 2024
1 parent 49dc254 commit 30d1676
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/GlassButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
{{ tooltip }}
</v-tooltip>
</template>
<Icon
<v-icon
v-if="isRound || isUncontained"
:icon="icon || ''"
:width="props.iconSize || calculatedIconSize"
:size="props.iconSize || calculatedIconSize"
:class="iconClass"
class="opacity-90"
/>
>
{{ icon }}
</v-icon>
<div v-else class="flex items-center align-center justify-center w-full h-full">
<Icon :icon="icon || ''" :width="props.iconSize || calculatedIconSize" :class="iconClass" />
<v-icon :size="props.iconSize || calculatedIconSize" :class="iconClass">{{ icon }}</v-icon>
<div class="text-white select-none" :class="labelClass">
{{ label }}
</div>
Expand All @@ -46,7 +47,6 @@
</div>
</template>
<script setup lang="ts">
import { Icon, IconifyIcon } from '@iconify/vue'
import { computed } from 'vue'
const props = defineProps<{
Expand All @@ -61,7 +61,7 @@ const props = defineProps<{
/**
* The icon to display in the button (prepend on rectangular, centered on round).
*/
icon?: string | IconifyIcon
icon?: string
/**
* Additional Tailwind classes for the icon.
*/
Expand Down

0 comments on commit 30d1676

Please sign in to comment.