aboutsummaryrefslogtreecommitdiffstats
path: root/static/dashboard.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 20:05:42 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 20:05:42 +0100
commit3dad5982a01ecbcadc37f4703047a25c94901a71 (patch)
tree9bdaac284bafafccfc14df61723a3e34deb68d65 /static/dashboard.js
parentd0ef71dc2e15860fb99e8d49810dc6d91ec76f79 (diff)
downloaddeck-it-3dad5982a01ecbcadc37f4703047a25c94901a71.tar.gz
deck-it-3dad5982a01ecbcadc37f4703047a25c94901a71.zip
fix(dashboard): action icons centred in their squares
The Nerd Font glyphs draw past their advance, so centring the advance left them off to the right; each sits in a 1em box drawn from its left edge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/dashboard.js')
-rw-r--r--static/dashboard.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/dashboard.js b/static/dashboard.js
index de8aaae..5559218 100644
--- a/static/dashboard.js
+++ b/static/dashboard.js
@@ -262,8 +262,8 @@ export default {
acts.textContent = "";
for (const a of st.actions ?? []) {
const b = document.createElement("button");
- b.className = "nf";
- b.textContent = a.icon;
+ b.innerHTML = `<i class="nf"></i>`;
+ b.firstChild.textContent = a.icon;
b.title = a.label;
b.setAttribute("aria-label", a.label);
b.onclick = async () => {