From 2032e9d981fb0125bdd45766c1148599aa3ed2bf Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 2 Nov 2026 20:42:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(knowledge):=20=E9=80=89=E4=B8=AD=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=8A=A0=E5=B7=A6=E4=BE=A7=E8=89=B2=E6=9D=A1=E4=B8=8E?= =?UTF-8?q?=E6=9B=B4=E5=AE=9E=E7=9A=84=E6=8F=8F=E8=BE=B9=EF=BC=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=85=A5=E5=8F=A3=E5=B8=B8=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Knowledge.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Knowledge.tsx b/web/src/pages/Knowledge.tsx index 598682e..24f5882 100644 --- a/web/src/pages/Knowledge.tsx +++ b/web/src/pages/Knowledge.tsx @@ -782,7 +782,7 @@ function CategoryRow({ return (
@@ -792,7 +792,7 @@ function CategoryRow({ style={{ paddingLeft: `${8 + indent * 14}px` }} className={`flex min-w-0 flex-1 items-center justify-between gap-2 rounded-lg py-1.5 pr-1 text-sm transition-colors ${ active - ? "font-medium text-primary-800" + ? "font-medium text-primary-900" : "text-ink-600 hover:bg-paper-100 hover:text-ink-900" }`} > @@ -825,7 +825,7 @@ function CategoryRow({ aria-expanded={open} onClick={onToggle} className={`mr-1 shrink-0 rounded-md p-1 text-ink-400 transition hover:bg-white hover:text-ink-700 ${ - open ? "opacity-100" : "opacity-0 group-hover/cat:opacity-100 focus-visible:opacity-100" + open ? "opacity-100" : "opacity-40 hover:opacity-100 group-hover/cat:opacity-100 focus-visible:opacity-100" }`} > @@ -987,7 +987,7 @@ function CategoryButton({ aria-current={active ? "true" : undefined} className={`flex w-full items-center justify-between gap-2 rounded-lg py-1.5 pl-2 pr-2 text-sm transition-colors ${ active - ? "bg-primary-50 font-medium text-primary-800 ring-1 ring-primary-200" + ? "bg-primary-50 font-medium text-primary-900 ring-1 ring-primary-300 shadow-[inset_3px_0_0_#4F46E5]" : "text-ink-600 hover:bg-paper-100 hover:text-ink-900" }`} >