add: icon in tag

This commit is contained in:
2024-11-27 12:27:37 +01:00
parent 27f70b53d6
commit cb9ac99295

View File

@@ -88,7 +88,10 @@ function updateTag(index: number) {
size="sm"
:ui="{ rounded: 'rounded-full' }"
>
{{ TAGS.find(color => color.label.toLowerCase() === tag)?.label }}
<div class="flex gap-1 items-center">
<UIcon :name="TAGS.find(icon => icon.label.toLowerCase() === tag)?.icon" size="16" />
<p>{{ TAGS.find(color => color.label.toLowerCase() === tag)?.label }}</p>
</div>
</UBadge>
</ClientOnly>
</div>