From 23bd8f73bfae2b2735564636628bb213845afb2e Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sat, 11 Nov 2023 11:26:51 +0700 Subject: [PATCH 01/18] Adjusting the color. --- frontend/src/components/IconSideNav.jsx | 2 +- frontend/src/components/kanbanBoard/taskCard.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/IconSideNav.jsx b/frontend/src/components/IconSideNav.jsx index c87219c..7de5fcf 100644 --- a/frontend/src/components/IconSideNav.jsx +++ b/frontend/src/components/IconSideNav.jsx @@ -59,7 +59,7 @@ const NavItem = ({ icon, selected, id, setSelected, logo, path }) => { {selected && ( Date: Sun, 12 Nov 2023 11:45:12 +0700 Subject: [PATCH 02/18] Updated delete task card. --- .../kanbanBoard/columnContainer.jsx | 21 ++++++++----------- .../components/kanbanBoard/kanbanBoard.jsx | 4 +++- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/kanbanBoard/columnContainer.jsx b/frontend/src/components/kanbanBoard/columnContainer.jsx index 5ff2333..bc259e2 100644 --- a/frontend/src/components/kanbanBoard/columnContainer.jsx +++ b/frontend/src/components/kanbanBoard/columnContainer.jsx @@ -47,17 +47,14 @@ function ColumnContainer({ ref={setNodeRef} style={style} className=" - bg-columnBackgroundColor - opacity-40 - border-2 - border-pink-500 - w-[350px] - h-[500px] - max-h-[500px] - rounded-md - flex - flex-col - " + bg-columnBackgroundColor + w-[350px] + h-[500px] + max-h-[500px] + rounded-md + flex + flex-col + " > ); } @@ -155,7 +152,7 @@ function ColumnContainer({ ))} diff --git a/frontend/src/components/kanbanBoard/kanbanBoard.jsx b/frontend/src/components/kanbanBoard/kanbanBoard.jsx index 1ec76b5..2c5a6a4 100644 --- a/frontend/src/components/kanbanBoard/kanbanBoard.jsx +++ b/frontend/src/components/kanbanBoard/kanbanBoard.jsx @@ -120,6 +120,7 @@ function KanbanBoard() { m-auto flex w-full + min-h-screen items-center overflow-x-auto overflow-y-hidden @@ -222,7 +223,8 @@ function KanbanBoard() { if (task.id !== id) return task; return { ...task, content }; }); - + if (content === "") return deleteTask(id + ); setTasks(newTasks); } From b0909f7737577c98fa689815322eaa0cab173c9c Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sun, 12 Nov 2023 19:06:59 +0700 Subject: [PATCH 03/18] Adjust the color. --- frontend/src/components/kanbanBoard/columnContainer.jsx | 6 ++---- frontend/src/components/kanbanBoard/kanbanBoard.jsx | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/kanbanBoard/columnContainer.jsx b/frontend/src/components/kanbanBoard/columnContainer.jsx index bc259e2..406981f 100644 --- a/frontend/src/components/kanbanBoard/columnContainer.jsx +++ b/frontend/src/components/kanbanBoard/columnContainer.jsx @@ -108,13 +108,11 @@ function ColumnContainer({ text-sm rounded-full " - > - 0 - + > {!editMode && column.title} {editMode && ( updateColumn(column.id, e.target.value)} autoFocus diff --git a/frontend/src/components/kanbanBoard/kanbanBoard.jsx b/frontend/src/components/kanbanBoard/kanbanBoard.jsx index 2c5a6a4..22cfa74 100644 --- a/frontend/src/components/kanbanBoard/kanbanBoard.jsx +++ b/frontend/src/components/kanbanBoard/kanbanBoard.jsx @@ -1,4 +1,4 @@ -import PlusIcon from "../icons/plusIcon" +import PlusIcon from "../icons/plusIcon"; import { useMemo, useState } from "react"; import ColumnContainer from "./columnContainer"; import { @@ -120,6 +120,7 @@ function KanbanBoard() { m-auto flex w-full + h-full min-h-screen items-center overflow-x-auto @@ -149,6 +150,7 @@ function KanbanBoard() { ))} + {/* create new column */}