fix design bug
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user