diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-30 11:31:01 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-30 11:31:01 +0100 |
| commit | 88d56032c2ea5cf0ca525667f91eadc1cd63333c (patch) | |
| tree | 04859dff427492edb7ef62b145785acccf1fc3b4 /static/dashboard.js | |
| parent | 202995fc8afab753a9e5c441932779c9a5249c96 (diff) | |
| download | deck-it-88d56032c2ea5cf0ca525667f91eadc1cd63333c.tar.gz deck-it-88d56032c2ea5cf0ca525667f91eadc1cd63333c.zip | |
style(todo): one row of chips, as tall as the running row
Stacked full-width lines took too much of the Dashboard. Each task is
now a chip, title over its due label, up to three side by side and a
"+N" for the rest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/dashboard.js')
| -rw-r--r-- | static/dashboard.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/dashboard.js b/static/dashboard.js index 1f123a7..7dbf00c 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -183,7 +183,7 @@ const SKELETON = ` <section class="dash-mid"> <div class="dash-always"><div class="card dash-music"></div><div class="card dash-spend"></div></div> <div class="dash-running" hidden></div> - <div class="card dash-todo" hidden></div> + <div class="dash-todo" hidden></div> </section>`; export default { @@ -343,7 +343,7 @@ export default { for (const t of tasks.slice(0, 3)) { const line = document.createElement("div"); line.className = "td"; - line.innerHTML = `<i class="nf"></i><span class="tt"></span><span class="due"></span>`; + line.innerHTML = `<i class="nf"></i><span class="col"><span class="tt"></span><span class="due"></span></span>`; line.querySelector(".nf").textContent = G.todo; line.querySelector(".tt").textContent = t.title; const due = dueLabel(t.due); @@ -357,7 +357,7 @@ export default { if (tasks.length > 3) { const more = document.createElement("div"); more.className = "td more"; - more.textContent = `+${tasks.length - 3} more`; + more.textContent = `+${tasks.length - 3}`; todo.append(more); } }; |
