fix: display all item labels in the element card (#809)

Co-authored-by: zebrapurring <>
This commit is contained in:
zebrapurring
2025-06-29 00:58:34 +02:00
committed by GitHub
parent 97bfb2d470
commit c1c8eb649c

View File

@@ -47,7 +47,7 @@
</TooltipProvider>
<Markdown class="mb-2 line-clamp-3 text-ellipsis" :source="item.description" />
<div class="-mr-1 mt-auto flex flex-wrap justify-end gap-2">
<LabelChip v-for="label in top3" :key="label.id" :label="label" size="sm" />
<LabelChip v-for="label in itemLabels" :key="label.id" :label="label" size="sm" />
</div>
</div>
</NuxtLink>
@@ -76,8 +76,8 @@
}
});
const top3 = computed(() => {
return props.item.labels.slice(0, 3) || [];
const itemLabels = computed(() => {
return props.item.labels || [];
});
const props = defineProps({