From 433e0b9f2aa1800af77d68f7c5fef4a3f0342cb0 Mon Sep 17 00:00:00 2001 From: seaHi Date: Wed, 7 Oct 2026 12:38:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=A1=B5=E5=85=B3=E8=81=94=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=BE=BD=E7=AB=A0=E7=9A=84=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=B8=8E=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/admin/tags/+page.svelte | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/routes/admin/tags/+page.svelte b/src/routes/admin/tags/+page.svelte index b258338..9a540ef 100644 --- a/src/routes/admin/tags/+page.svelte +++ b/src/routes/admin/tags/+page.svelte @@ -82,7 +82,8 @@ {tag.post_count} @@ -215,17 +216,40 @@ color: var(--text-muted, rgba(0, 0, 0, 0.6)); } + .badge-link, + .badge-empty { + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 24px; + height: 20px; + line-height: 1; + vertical-align: middle; + box-sizing: border-box; + } + .badge-link { color: var(--accent-color, #419b38); text-decoration: none; cursor: pointer; font-weight: 600; - transition: all 0.2s ease; + opacity: 1 !important; + transition: + background-color 0.15s ease, + color 0.15s ease; } - .badge-link:hover { + .badge-link:hover, + .badge-link:focus-visible { background-color: var(--accent-color, #419b38); color: #ffffff; + opacity: 1 !important; + text-decoration: none; + outline: none; + } + + .badge-link:focus-visible { + box-shadow: 0 0 0 2px rgba(65, 155, 56, 0.4); } .badge-empty {