lots of stuff

This commit is contained in:
Hayden 2022-09-06 10:32:13 -08:00
parent 98f677c623
commit 1ab7435bf1
13 changed files with 289 additions and 23 deletions

View file

@ -8,7 +8,7 @@
<Icon name="mdi-package-variant" />
{{ item.name }}
</h2>
<p>{{ item.description }}</p>
<p>{{ description }}</p>
<div class="flex gap-2 flex-wrap justify-end">
<LabelChip v-for="label in item.labels" :label="label" class="badge-primary group-hover:badge-secondary" />
</div>
@ -19,12 +19,13 @@
<script setup lang="ts">
import { Item } from '~~/lib/api/classes/items';
defineProps({
const props = defineProps({
item: {
type: Object as () => Item,
required: true,
},
});
const description = computed(() => {
return truncate(props.item.description, 80);
});
</script>
<style scoped></style>