feat: restyle toc

This commit is contained in:
DIYgod
2023-06-07 23:16:42 +01:00
parent 8ba257d836
commit 5afa1d40cc
+3 -3
View File
@@ -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 (
<div
className="xlog-post-toc absolute left-full pl-10 h-full top-0 lg:block hidden"
className="xlog-post-toc absolute left-full pl-14 h-full top-0 lg:block hidden"
ref={containerRef}
>
<div