Adjust the color.

This commit is contained in:
THIS ONE IS A LITTLE BIT TRICKY KRUB 2023-11-12 19:06:59 +07:00
parent d4638e03a8
commit b0909f7737
2 changed files with 6 additions and 7 deletions

View File

@ -108,13 +108,11 @@ function ColumnContainer({
text-sm
rounded-full
"
>
0
</div>
></div>
{!editMode && column.title}
{editMode && (
<input
className="bg-black focus:border-rose-500 border rounded outline-none px-2"
className="bg-white focus:border-rose-500 border rounded outline-none px-2"
value={column.title}
onChange={(e) => updateColumn(column.id, e.target.value)}
autoFocus

View File

@ -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() {
))}
</SortableContext>
</div>
{/* create new column */}
<button
onClick={() => {
createNewColumn();
@ -223,8 +225,7 @@ function KanbanBoard() {
if (task.id !== id) return task;
return { ...task, content };
});
if (content === "") return deleteTask(id
);
if (content === "") return deleteTask(id);
setTasks(newTasks);
}