fix: div in span (#61)

This commit is contained in:
KazariEX
2023-11-16 14:10:34 +08:00
committed by GitHub
parent 87025cd17e
commit 99d7d660bb

View File

@@ -42,11 +42,11 @@ const dishLabel = computed(() => {
bg="blue-300 opacity-20" bg="blue-300 opacity-20"
@click="triggerGtm(dish)" @click="triggerGtm(dish)"
> >
<span m="r-1" class="inline-flex items-center justify-center" text="sm blue-700 dark:blue-200"> <span m="r-1" text="sm blue-700 dark:blue-200">
{{ dishLabel }} {{ dishLabel }}
</span> </span>
<span v-for="tool, i in tools" :key="i" inline-flex> <template v-for="tool, i in tools">
<div v-if="dish.tools?.includes(tool.name)" :class="tool.icon" /> <span v-if="dish.tools?.includes(tool.name)" :key="i" :class="tool.icon" />
</span> </template>
</a> </a>
</template> </template>