mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 16:45:43 +00:00
remove date from cards
This commit is contained in:
parent
824a1d0bc4
commit
9f0b09be52
1 changed files with 2 additions and 9 deletions
|
@ -13,16 +13,13 @@
|
||||||
</span>
|
</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded-b p-4 flex-grow col-span-4 flex flex-col gap-y-2 bg-base-100">
|
<div class="rounded-b p-4 pt-2 flex-grow col-span-4 flex flex-col gap-y-2 bg-base-100">
|
||||||
<div class="flex justify-between gap-2">
|
<div class="flex justify-between gap-2">
|
||||||
<div class="mr-auto tooltip" data-tip="Purchase Price">
|
<div class="mr-auto tooltip tooltip-tip" data-tip="Purchase Price">
|
||||||
<span class="badge badge-sm badge-ghost h-5">
|
<span class="badge badge-sm badge-ghost h-5">
|
||||||
<Currency :amount="item.purchasePrice" />
|
<Currency :amount="item.purchasePrice" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="item.createdAt" class="tooltip z-10" :data-tip="datetime">
|
|
||||||
<Icon class="h-5 w-5 text-primary" name="mdi-calendar" />
|
|
||||||
</div>
|
|
||||||
<div v-if="item.insured" class="tooltip z-10" data-tip="Insured">
|
<div v-if="item.insured" class="tooltip z-10" data-tip="Insured">
|
||||||
<Icon class="h-5 w-5 text-primary" name="mdi-shield-check" />
|
<Icon class="h-5 w-5 text-primary" name="mdi-shield-check" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,10 +47,6 @@
|
||||||
return props.item.labels.slice(0, 3) || [];
|
return props.item.labels.slice(0, 3) || [];
|
||||||
});
|
});
|
||||||
|
|
||||||
const datetime = computed(() => {
|
|
||||||
return "Created " + fmtDate(props.item.createdAt, "human");
|
|
||||||
});
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
item: {
|
item: {
|
||||||
type: Object as () => ItemOut | ItemSummary,
|
type: Object as () => ItemOut | ItemSummary,
|
||||||
|
|
Loading…
Reference in a new issue