Skip to content

Commit 590b9be

Browse files
committed
fix: toc
1 parent 41eb9d5 commit 590b9be

File tree

1 file changed

+2
-1
lines changed
  • apps/v4/app/(app)/docs/[[...slug]]

1 file changed

+2
-1
lines changed

apps/v4/app/(app)/docs/[[...slug]]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,14 @@ export default async function Page(props: {
193193
)}
194194
</div>
195195
</div>
196-
<div className="sticky top-[calc(var(--header-height)+1px)] z-30 ml-auto hidden w-72 flex-col gap-4 overflow-hidden overscroll-none pb-8 xl:flex">
196+
<div className="sticky top-[calc(var(--header-height)+1px)] z-30 ml-auto hidden h-[calc(100svh-var(--footer-height)+2rem)] w-72 flex-col gap-4 overflow-hidden overscroll-none pb-8 xl:flex">
197197
<div className="h-(--top-spacing) shrink-0" />
198198
{/* @ts-expect-error - revisit fumadocs types. */}
199199
{doc.toc?.length ? (
200200
<div className="no-scrollbar overflow-y-auto px-8">
201201
{/* @ts-expect-error - revisit fumadocs types. */}
202202
<DocsTableOfContents toc={doc.toc} />
203+
<div className="h-12" />
203204
</div>
204205
) : null}
205206
<div className="flex flex-1 flex-col gap-12 px-6">

0 commit comments

Comments
 (0)