fix: task card layout — key+priority on top, title on separate line
All checks were successful
Deploy Web Client / deploy (push) Successful in 36s

This commit is contained in:
Markov 2026-02-15 20:51:33 +01:00
parent 77d80d7726
commit 96d1fabc4c

View File

@ -130,16 +130,14 @@ export default function KanbanBoard({ projectId }: Props) {
hover:border-[var(--accent)] transition-colors"
onClick={() => setSelectedTask(task)}
>
<div className="flex items-start gap-2">
<div className="flex items-center gap-1.5 mb-1">
<div
className="w-2 h-2 rounded-full mt-1.5 shrink-0"
className="w-2 h-2 rounded-full shrink-0"
style={{ background: PRIORITY_COLORS[task.priority] || "#737373" }}
/>
<div className="flex-1"><span className="text-xs text-[var(--muted)] mr-1">{task.key}</span><span className="text-sm">{task.title}</span></div>
<span className="text-xs text-[var(--muted)]">{task.key}</span>
</div>
{task.description && (
<p className="text-xs text-[var(--muted)] mt-1 ml-4">{task.description}</p>
)}
<div className="text-sm ml-3.5">{task.title}</div>
{/* Move buttons */}
<div className="flex gap-1 mt-2 ml-4">
{colIndex > 0 && (
@ -218,17 +216,15 @@ export default function KanbanBoard({ projectId }: Props) {
className="bg-[var(--card)] border border-[var(--border)] rounded-lg p-3 cursor-grab
hover:border-[var(--accent)] transition-colors active:cursor-grabbing"
>
<div className="flex items-start gap-2">
<div className="flex items-center gap-1.5 mb-1">
<div
className="w-2 h-2 rounded-full mt-1.5 shrink-0"
className="w-2 h-2 rounded-full shrink-0"
style={{ background: PRIORITY_COLORS[task.priority] || "#737373" }}
title={task.priority}
/>
<div><span className="text-xs text-[var(--muted)] mr-1">{task.key}</span><span className="text-sm">{task.title}</span></div>
<span className="text-xs text-[var(--muted)]">{task.key}</span>
</div>
{task.description && (
<p className="text-xs text-[var(--muted)] mt-1 ml-4 line-clamp-2">{task.description}</p>
)}
<div className="text-sm ml-3.5">{task.title}</div>
</div>
))}