From 5afa1d40ccb4c1a96af0cc5315dd7e0296a10a24 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 7 Jun 2023 23:16:42 +0100 Subject: [PATCH] feat: restyle toc --- src/components/site/PostToc.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/site/PostToc.tsx b/src/components/site/PostToc.tsx index bdc423aa..78665eb6 100644 --- a/src/components/site/PostToc.tsx +++ b/src/components/site/PostToc.tsx @@ -101,8 +101,8 @@ function Items(props: ItemsProps) { title={content} className={ (`#${activeId}` === child.children[0].url - ? "text-accent" - : "text-zinc-700") + + ? "text-accent font-bold" + : "text-zinc-400 font-medium") + " truncate inline-block max-w-full align-bottom hover:text-accent cursor-pointer" } > @@ -138,7 +138,7 @@ export const PostToc: React.FC<{ return (