aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
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/deck.css
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/deck.css')
-rw-r--r--static/deck.css5
1 files changed, 4 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css
index 61b7c3f..b0608e1 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -724,9 +724,12 @@ select {
/* Action icons, each in Hyprland's rotating border. */
.dash-acts { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 0; }
-.dash-acts button { position: relative; height: 100%; max-height: 64px; aspect-ratio: 1; border-radius: 16px; font-size: 1.7rem; line-height: 1;
+.dash-acts button { position: relative; display: grid; place-items: center; padding: 0; height: 100%; max-height: 64px; aspect-ratio: 1; border-radius: 16px; font-size: 1.7rem; line-height: 1;
background: var(--udt-surface0); border: 0; color: var(--udt-text); }
.dash-acts button.fail { color: var(--udt-red); }
+/* The Nerd Font glyphs draw past their advance; a 1em box drawn from its left
+ edge centres what is drawn, not the advance. */
+.dash-acts button i { display: block; width: 1em; height: 1em; line-height: 1; text-align: left; font-style: normal; }
/* The same rotating three-hue gradient Hyprland draws on window borders,
read from ~/.cache/udt/udt-border.lua via /theme.css. */
.dash-acts button::before {