Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(ui): move create task to top and display permanently

tiran1337f6a9c565f38
diff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsx
index f6a772cb8..881492d37 100644
--- a/apps/web/src/components/kanban-board/column/index.tsx
+++ b/apps/web/src/components/kanban-board/column/index.tsx
@@ -35,21 +35,19 @@ function Column({ column }: ColumnProps) {
<div className="shrink-0 border-b border-border/60 px-3 py-2">
<ColumnHeader column={column} />
</div>
-
- <div className="min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-2 py-2 [-webkit-overflow-scrolling:touch]">
- <ColumnDropzone column={column} onIsOverChange={setIsDropzoneOver} />
- </div>
-
- <div className="border-t border-border/60 p-1.5 transition-opacity md:opacity-0 md:group-hover:opacity-100">
+ <div className="border-t border-border/60 p-1.5 transition-opacity">
<button
type="button"
onClick={() => setIsTaskModalOpen(true)}
- className="flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-muted-foreground transition-all hover:bg-accent/50 hover:text-foreground"
+ className="flex w-full items-center gap-2 rounded-md px-2 pt-1 text-left text-sm text-muted-foreground transition-all hover:bg-accent/50 hover:text-foreground"
>
<Plus className="w-4 h-4" />
<span>{t("tasks:kanban.addTask")}</span>
</button>
</div>
+ <div className="min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-2 py-1 [-webkit-overflow-scrolling:touch]">
+ <ColumnDropzone column={column} onIsOverChange={setIsDropzoneOver} />
+ </div>
</div>
);
}