remove duplicates from recently tracked dropdown, improve focus handling

This commit is contained in:
Gregor Vostrak
2025-02-07 13:35:11 +01:00
parent 0a956fd9e7
commit 4ed8f16ae3
4 changed files with 36 additions and 9 deletions

View File

@@ -30,13 +30,14 @@ const task = computed(() => {
tabindex="-1"
:data-select-id="timeEntry.id"
:class="twMerge('px-2 py-1.5 flex justify-between items-center space-x-2 w-full rounded', props.highlighted && 'bg-card-background-active')">
<span class="text-sm font-medium">
<span v-if="timeEntry.description !== ''" class="text-sm font-medium">
{{
timeEntry.description !== ''
? timeEntry.description
: 'No Description'
timeEntry.description
}}
</span>
<span v-else class="text-sm text-text-tertiary font-medium">
No Description
</span>
<ProjectBadge
ref="projectDropdownTrigger"
:color="project?.color"