fix design bug

This commit is contained in:
hamid zarghami
2026-07-25 15:53:16 +03:30
parent f5da44d9cf
commit f53b5d8fe1
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -33,17 +33,17 @@ const Task: FC<Props> = ({ task, isDragging, onClick }) => {
return (
<div
onClick={handleClick}
className={`bg-white rounded-lg p-2 cursor-grab active:cursor-grabbing transition-opacity touch-manipulation ${
className={`bg-white rounded-lg p-2 w-full min-w-0 max-w-full overflow-hidden cursor-grab active:cursor-grabbing transition-opacity touch-manipulation ${
isDragging ? "opacity-40 shadow-lg" : ""
}`}
>
{task.color ? <div className="h-10 rounded-lg" style={{ backgroundColor: task.color }} /> : null}
{task.tag ? (
<div className="bg-[#FF76C2] h-5 px-3 flex items-center mt-2 text-[10px] text-white rounded-md w-fit">
<div className="bg-[#FF76C2] h-5 px-3 flex items-center mt-2 text-[10px] text-white rounded-md w-fit max-w-full truncate">
{task.tag}
</div>
) : null}
<div className="font-bold text-xs mt-2">{task.title}</div>
<div className="font-bold text-xs mt-2 break-words">{task.title}</div>
{task.ticketId ? (
<Link
to={Pages.ticket.detail + task.ticketId}