fix: simplify date-only due labels
ci / gitleaks (push) Successful in 7s
ci / docker (push) Successful in 3m29s

This commit is contained in:
2026-09-10 17:22:06 +08:00
parent 1366f302ec
commit ab8c0a5138
6 changed files with 76 additions and 47 deletions
+3 -3
View File
@@ -13,15 +13,15 @@ const presentation = computed(() => getTaskDuePresentation(props))
</script>
<template>
<span v-if="presentation" class="task-due" :class="`task-due--${presentation.state}`">
<span v-if="presentation" class="task-due" :class="[`task-due--${presentation.state}`, { 'task-due--timed': dueHasTime }]">
<time
class="task-due__text"
:datetime="presentation.datetime"
:title="presentation.fullText"
:aria-label="presentation.fullText"
>
<span class="task-due__absolute">{{ presentation.absoluteText }}</span>
<span class="task-due__separator" aria-hidden="true"> · </span>
<span v-if="dueHasTime" class="task-due__absolute">{{ presentation.absoluteText }}</span>
<span v-if="dueHasTime" class="task-due__separator" aria-hidden="true"> · </span>
<span class="task-due__relative">{{ presentation.relativeText }}</span>
</time>
</span>