fix(task) : cartes en flex-wrap, badges pleine taille (pas de troncature)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-05-21 09:47:38 +02:00
parent c16ddeb9f8
commit 0a5fe300eb

View File

@@ -39,41 +39,33 @@
/> />
</div> </div>
<div class="mt-2 flex min-w-0 items-center gap-1.5"> <div class="mt-2 flex flex-wrap items-center gap-1.5">
<span <span
v-if="showStatusBadge && task.status" v-if="showStatusBadge && task.status"
class="shrink-0 max-w-[7rem] truncate rounded-full px-2 py-0.5 text-xs font-semibold text-white" class="rounded-full px-2 py-0.5 text-xs font-semibold text-white"
:style="{ backgroundColor: task.status.color }" :style="{ backgroundColor: task.status.color }"
> >
{{ task.status.label }} {{ task.status.label }}
</span> </span>
<span <span
v-if="task.priority" v-if="task.priority"
class="shrink-0 max-w-[7rem] truncate rounded-full px-2 py-0.5 text-xs font-semibold text-white" class="rounded-full px-2 py-0.5 text-xs font-semibold text-white"
:style="{ backgroundColor: task.priority.color }" :style="{ backgroundColor: task.priority.color }"
> >
{{ task.priority.label }} {{ task.priority.label }}
</span> </span>
<span <span
v-for="tag in task.tags.slice(0, 2)" v-for="tag in task.tags"
:key="tag.id" :key="tag.id"
class="shrink-0 max-w-[7rem] truncate rounded-full px-2 py-0.5 text-xs font-semibold text-white" class="rounded-full px-2 py-0.5 text-xs font-semibold text-white"
:style="{ backgroundColor: tag.color }" :style="{ backgroundColor: tag.color }"
:title="tag.label"
> >
{{ tag.label }} {{ tag.label }}
</span> </span>
<span
v-if="task.tags.length > 2"
class="shrink-0 rounded-full bg-neutral-200 px-2 py-0.5 text-xs font-semibold text-neutral-600"
:title="task.tags.slice(2).map(t => t.label).join(', ')"
>
+{{ task.tags.length - 2 }}
</span>
<!-- Deadline badge --> <!-- Deadline badge -->
<span <span
v-if="task.deadline" v-if="task.deadline"
class="shrink-0 max-w-[7rem] truncate rounded-full px-2 py-0.5 text-xs font-semibold text-white" class="rounded-full px-2 py-0.5 text-xs font-semibold text-white"
:style="{ backgroundColor: deadlineColor }" :style="{ backgroundColor: deadlineColor }"
:title="task.deadline" :title="task.deadline"
> >