Skip to content

Commit 3f1be05

Browse files
committed
Add backgrounds to TOC footer
1 parent b588316 commit 3f1be05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/table-of-contents.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export function TableOfContents({
101101
{hasMetaInfo && (
102102
<div
103103
className={clsx(
104-
hasHeadings && "nextra-toc-footer mt-8 pt-8",
104+
hasHeadings &&
105+
"nextra-toc-footer mt-8 bg-[rgb(var(--nextra-bg))] pt-8",
105106
"sticky bottom-0 flex flex-col items-start gap-2 pb-8",
106107
"-mx-1 px-1", // to hide focused toc links
107108
)}

0 commit comments

Comments
 (0)