From af61610f895ceb0eb60389c84bdddc4b160d5977 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:08:55 -0600 Subject: [PATCH] fix(css): use box-shadow for action button anti-aliasing Apply same anti-aliasing technique to .action-btn-circle classes used in AlbumView and ArtistView headers. Replace border with inset box-shadow for smoother circular edges. --- src/app.css | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app.css b/src/app.css index 1120e4fe6..14c1b0479 100644 --- a/src/app.css +++ b/src/app.css @@ -400,6 +400,7 @@ select { /* ============ Action Buttons ============ */ /* Reusable circular action buttons for headers and toolbars */ +/* Uses box-shadow inset instead of border for smoother anti-aliasing */ .action-btn-circle { display: flex; @@ -408,17 +409,18 @@ select { width: 36px; height: 36px; border-radius: 50%; - border: 1px solid var(--border-strong); + border: none; background: transparent; color: var(--text-muted); cursor: pointer; - transition: background 150ms ease, color 150ms ease, border-color 150ms ease; + box-shadow: inset 0 0 0 1px var(--border-strong); + transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease; } .action-btn-circle:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); - border-color: var(--text-primary); + box-shadow: inset 0 0 0 1px var(--text-primary); } .action-btn-circle:disabled { @@ -430,18 +432,19 @@ select { width: 44px; height: 44px; background: var(--accent-primary); - border: 2px solid var(--border-subtle); + border: none; color: var(--text-primary); - transition: background 150ms ease, border-color 200ms ease; + box-shadow: inset 0 0 0 2px var(--border-subtle); + transition: background 150ms ease, box-shadow 200ms ease; } .action-btn-circle.primary:hover { background: var(--accent-hover); - border-color: var(--text-primary); + box-shadow: inset 0 0 0 2px var(--text-primary); } .action-btn-circle.is-active { background: rgba(var(--accent-primary-rgb, 66, 133, 244), 0.15); - border-color: var(--accent-primary); + box-shadow: inset 0 0 0 1px var(--accent-primary); color: var(--accent-primary); }