From 3dad5982a01ecbcadc37f4703047a25c94901a71 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 20:05:42 +0100 Subject: 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 --- static/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/dashboard.js') 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 = ``; + b.firstChild.textContent = a.icon; b.title = a.label; b.setAttribute("aria-label", a.label); b.onclick = async () => { -- cgit v1.2.3