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.

Fit an empty description when it's shown

emanuele-emf93483bcf1b7
diff --git a/src/app.js b/src/app.js
index 3d21ee1..5f449de 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1009,7 +1009,9 @@ function showDesc() {
const editing = document.activeElement === desc || !desc.value.trim();
desc.hidden = !editing;
view.hidden = editing;
- if (!editing) view.innerHTML = markdown(desc.value);
+ // Hidden, it measured 0, as it does when the task before this one had a description.
+ if (editing) fit(desc);
+ else view.innerHTML = markdown(desc.value);
}
function editDesc() {