diff --git a/components/post-toc.tsx b/components/post-toc.tsx index 67cc8c8..5a2b988 100644 --- a/components/post-toc.tsx +++ b/components/post-toc.tsx @@ -111,18 +111,18 @@ export function PostToc() { ref={(el) => { itemRefs.current[item.id] = el; }} - className={item.depth === 3 ? 'pl-3' : ''} + className={`relative ${item.depth === 3 ? 'pl-3' : 'pl-0'}`} > - +