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.
This commit is contained in:
vicrodh committed 2026-01-24 12:08:55 -06:00
1 parent 83732131ad
commit af61610f89
1 file changed
+10 -7
+10 -7
View File
@@ -400,6 +400,7 @@ select {
/* ============ Action Buttons ============ */ /* ============ Action Buttons ============ */
/* Reusable circular action buttons for headers and toolbars */ /* Reusable circular action buttons for headers and toolbars */
/* Uses box-shadow inset instead of border for smoother anti-aliasing */
.action-btn-circle { .action-btn-circle {
display: flex; display: flex;
@@ -408,17 +409,18 @@ select {
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 50%; border-radius: 50%;
border: 1px solid var(--border-strong); border: none;
background: transparent; background: transparent;
color: var(--text-muted); color: var(--text-muted);
cursor: pointer; 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) { .action-btn-circle:hover:not(:disabled) {
background: var(--bg-hover); background: var(--bg-hover);
color: var(--text-primary); color: var(--text-primary);
border-color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary);
} }
.action-btn-circle:disabled { .action-btn-circle:disabled {
@@ -430,18 +432,19 @@ select {
width: 44px; width: 44px;
height: 44px; height: 44px;
background: var(--accent-primary); background: var(--accent-primary);
border: 2px solid var(--border-subtle); border: none;
color: var(--text-primary); 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 { .action-btn-circle.primary:hover {
background: var(--accent-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 { .action-btn-circle.is-active {
background: rgba(var(--accent-primary-rgb, 66, 133, 244), 0.15); 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); color: var(--accent-primary);
} }