mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
fix: display all item labels in the element card (#809)
Co-authored-by: zebrapurring <>
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user