Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Add tasks from the top of the first column

emanuele-emd48d33a71047
diff --git a/src/app.js b/src/app.js
index efe23b2..61c963a 100644
--- a/src/app.js
+++ b/src/app.js
@@ -404,10 +404,11 @@ function renderColumns() {
columns.replaceChildren(...statuses.map((status, i) => {
const col = el("section", { class: "column", "data-status": status },
el("h2", {}, el("span", { class: "dot", style: `background:${statusColor(status)}` }), status,
- el("span", { class: "count" })),
+ el("span", { class: "count" }),
+ // At the top, so a long column never hides it.
+ i === 0 ? el("button", { class: "add", title: "Add task (n)", "aria-label": "Add task", onclick: newTask }, icon("plus")) : null),
el("div", { class: "cards" }),
);
- if (i === 0) col.append(el("div", { class: "add" }, el("button", { class: "ghost", onclick: newTask }, icon("plus"), "Add task")));
wireDrop(col, col.querySelector(".cards"), status);
return col;
}));
diff --git a/src/index.html b/src/index.html
index 425a89a..9cfc25b 100644
--- a/src/index.html
+++ b/src/index.html
@@ -163,9 +163,11 @@ header .sub a:hover { color: var(--text); }
}
.tag .dot { width: 6px; height: 6px; }
.drop-line { height: 2px; background: var(--text); border-radius: 2px; margin: -4px 4px; }
-.add { padding: 0 8px 8px; }
-.add .ghost { color: var(--muted); }
-.add .ghost:hover { color: var(--text); }
+.column h2 .add {
+ margin: -6px -6px -6px auto; width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 8px;
+ background: none; color: var(--muted);
+}
+.column h2 .add:hover, .column h2 .add:focus-visible { background: var(--hover); color: var(--text); }
.empty {
margin: auto; text-align: center; color: var(--muted); max-width: 380px; padding: 40px 20px;
}