Minor UI refinements

This commit is contained in:
2026-06-10 21:55:20 +02:00
parent fc9cc2a150
commit 841046ba36
4 changed files with 44 additions and 5 deletions
+21
View File
@@ -146,6 +146,27 @@ function renderResults() {
row.append(when, who, count);
el.appendChild(row);
});
const noneWork = poll.votes.filter((v) => v.optionIds.length === 0).map((v) => v.name);
if (noneWork.length > 0) {
const row = document.createElement("div");
row.className = "result-row none-row";
const when = document.createElement("span");
when.className = "when";
when.textContent = "None at all";
const who = document.createElement("span");
who.className = "who";
who.textContent = noneWork.join(", ");
const count = document.createElement("span");
count.className = "count";
count.textContent = noneWork.length;
row.append(when, who, count);
el.appendChild(row);
}
}
$("vote-btn").addEventListener("click", async () => {