mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-27 02:10:35 +01:00
Improve datetag style
This commit is contained in:
@@ -14,16 +14,10 @@ function formatTodayDate(date: string) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<UBadge v-if="startDate === endDate" variant="soft" size="xs">
|
||||||
v-if="startDate !== endDate"
|
|
||||||
class="mb-1 translate-y-px inline-block flex-none rounded bg-zinc-200 p-1 text-xs font-medium leading-none text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400"
|
|
||||||
>
|
|
||||||
{{ formatTodayDate(startDate!.toString()) }} — {{ formatTodayDate(endDate) }}
|
{{ formatTodayDate(startDate!.toString()) }} — {{ formatTodayDate(endDate) }}
|
||||||
</div>
|
</UBadge>
|
||||||
<div
|
<UBadge v-else variant="soft" size="xs">
|
||||||
v-else
|
|
||||||
class="mb-1 translate-y-px inline-block flex-none rounded bg-zinc-200 p-1 text-xs font-medium leading-none text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400"
|
|
||||||
>
|
|
||||||
{{ formatTodayDate(endDate) }}
|
{{ formatTodayDate(endDate) }}
|
||||||
</div>
|
</UBadge>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user