fix: add close button to TaskModal
All checks were successful
Deploy Web Client / deploy (push) Successful in 35s

This commit is contained in:
Markov 2026-02-23 12:58:51 +01:00
parent 6aa5e5d0da
commit 9064a3be12

View File

@ -124,6 +124,7 @@ export default function TaskModal({ task, projectId, projectSlug, onClose, onUpd
> >
{/* Header */} {/* Header */}
<div className="p-4 md:p-6 border-b border-[var(--border)]"> <div className="p-4 md:p-6 border-b border-[var(--border)]">
<div className="flex items-start justify-between gap-2 mb-1">
{editingTitle ? ( {editingTitle ? (
<input <input
autoFocus autoFocus
@ -147,7 +148,15 @@ export default function TaskModal({ task, projectId, projectSlug, onClose, onUpd
{title} {title}
</h2> </h2>
)} )}
<div className="text-xs text-[var(--muted)] mt-1">{task.key}</div> <button
onClick={onClose}
className="text-[var(--muted)] hover:text-[var(--fg)] transition-colors text-xl leading-none cursor-pointer shrink-0 mt-1"
title="Закрыть"
>
</button>
</div>
<div className="text-xs text-[var(--muted)]">{task.key}</div>
</div> </div>
<div className="flex flex-col md:flex-row"> <div className="flex flex-col md:flex-row">