Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

Merge pull request #1695 from usekaneo/code/fix-1684-planka-label-colors

Tin Sever118306946512
diff --cc apps/web/src/components/kanban-board/task-labels.tsx
index 0c356e97c,49d7856e5..76d7f5bda
--- a/apps/web/src/components/kanban-board/task-labels.tsx
+++ b/apps/web/src/components/kanban-board/task-labels.tsx
@@@ -45,18 -15,15 +15,18 @@@ export function TaskLabels(
<Badge
key={label.id}
variant="outline"
- className="px-2 py-0.5 text-[10px] flex items-center"
+ className="max-w-full min-w-0 px-2 py-0.5 text-[10px] flex items-center"
>
<span
- className="inline-block w-1.5 h-1.5 mr-1 rounded-full"
+ aria-hidden="true"
+ className="inline-block w-1.5 h-1.5 mr-1 shrink-0 rounded-full"
style={{
- backgroundColor: validColor(label.color),
+ backgroundColor: resolveLabelColor(label.color),
}}
/>
- <span className="max-w-20 truncate">{label.name}</span>
+ <span className="min-w-0 truncate" title={label.name}>
+ {label.name}
+ </span>
</Badge>
))}
</div>