fix design bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
VITE_TOKEN_NAME = 'admin_token'
|
||||
VITE_REFRESH_TOKEN_NAME = 'admin_refresh_token'
|
||||
# VITE_BASE_URL = 'https://api.danakcorp.com'
|
||||
VITE_BASE_URL = 'https://api.danakcorp.com'
|
||||
|
||||
VITE_BASE_URL = 'http://192.168.99.131:3500'
|
||||
# VITE_BASE_URL = 'http://192.168.99.131:3500'
|
||||
@@ -220,8 +220,8 @@ const Column: FC<Props> = ({
|
||||
return (
|
||||
<div
|
||||
ref={columnRef}
|
||||
className={`bg-[#F0F3F7] rounded-xl p-3 sm:p-4 xl:p-6 w-[272px] sm:w-[288px] xl:w-[310px] shrink-0 flex flex-col h-full min-h-0 transition-colors ${
|
||||
isColumnDragOver ? "ring-2 ring-black/30" : ""
|
||||
className={`bg-[#F0F3F7] rounded-xl p-3 sm:p-4 xl:p-6 w-[272px] sm:w-[288px] xl:w-[310px] shrink-0 flex flex-col h-full min-h-0 min-w-0 overflow-hidden transition-colors ${
|
||||
isColumnDragOver ? "ring-2 ring-black/30 ring-inset" : ""
|
||||
} ${isDraggingColumn ? "opacity-50" : ""}`}
|
||||
onDragOver={handleColumnDragOver}
|
||||
onDragLeave={handleColumnDragLeave}
|
||||
@@ -276,8 +276,8 @@ const Column: FC<Props> = ({
|
||||
ref={provided.innerRef}
|
||||
{...provided.droppableProps}
|
||||
onScroll={handleTasksScroll}
|
||||
className={`mt-3 sm:mt-4 xl:mt-5 flex-1 min-h-[80px] overflow-y-auto overscroll-y-contain rounded-lg transition-colors ${
|
||||
snapshot.isDraggingOver ? "bg-primary/5 ring-2 ring-primary/30" : ""
|
||||
className={`mt-3 sm:mt-4 xl:mt-5 flex-1 min-h-[80px] min-w-0 overflow-y-auto overflow-x-hidden overscroll-y-contain rounded-lg transition-colors ${
|
||||
snapshot.isDraggingOver ? "bg-primary/5 ring-2 ring-primary/30 ring-inset" : ""
|
||||
}`}
|
||||
>
|
||||
{isTasksPending
|
||||
@@ -294,7 +294,7 @@ const Column: FC<Props> = ({
|
||||
ref={dragProvided.innerRef}
|
||||
{...dragProvided.draggableProps}
|
||||
{...dragProvided.dragHandleProps}
|
||||
className="mb-3 sm:mb-4"
|
||||
className="mb-3 sm:mb-4 w-full min-w-0 max-w-full"
|
||||
style={dragProvided.draggableProps.style}
|
||||
>
|
||||
<Task
|
||||
|
||||
@@ -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