From a0ffcbcd19c217bf9f0bdd3b2a40d3dff6896bda Mon Sep 17 00:00:00 2001 From: sosokker Date: Fri, 17 Nov 2023 03:21:00 +0700 Subject: [PATCH] Improve Kanban UI --- .../kanbanBoard/columnContainer.jsx | 10 ++---- .../kanbanBoard/columnContainerWrapper.jsx | 2 +- .../components/kanbanBoard/kanbanBoard.jsx | 33 ++++++++++--------- 3 files changed, 20 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/kanbanBoard/columnContainer.jsx b/frontend/src/components/kanbanBoard/columnContainer.jsx index 8cf6f59..80bd445 100644 --- a/frontend/src/components/kanbanBoard/columnContainer.jsx +++ b/frontend/src/components/kanbanBoard/columnContainer.jsx @@ -64,16 +64,10 @@ function ColumnContainer({ column, deleteColumn, updateColumn, createTask, tasks setEditMode(true); }} className=" - bg-mainBackgroundColor + ml-3 text-md - h-[60px] cursor-grab - rounded-md - rounded-b-none - p-3 font-bold - border-columnBackgroundColor - border-4 flex items-center justify-between @@ -113,7 +107,7 @@ function ColumnContainer({ column, deleteColumn, updateColumn, createTask, tasks {/* Column task container */} -
+
{tasks.map(task => ( diff --git a/frontend/src/components/kanbanBoard/columnContainerWrapper.jsx b/frontend/src/components/kanbanBoard/columnContainerWrapper.jsx index 60fbeb1..478a529 100644 --- a/frontend/src/components/kanbanBoard/columnContainerWrapper.jsx +++ b/frontend/src/components/kanbanBoard/columnContainerWrapper.jsx @@ -2,7 +2,7 @@ import ColumnContainer from "./columnContainer"; function ColumnContainerCard({ column, deleteColumn, updateColumn, createTask, tasks, deleteTask, updateTask }) { return ( -
+
+ h-[60px] + w-[350px] + min-w-[350px] + cursor-pointer + rounded-xl + bg-[#f1f2f4] + border-2 + p-4 + hover:bg-gray-200 + flex + gap-2 + my-2 + bg-opacity-60 + "> +
+
Add Column