From 7104adcbb9c8ea81869e1c1d3560513d9f209cc3 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Tue, 7 Jan 2025 14:09:59 +0100 Subject: [PATCH] Update TableOfContents.tsx --- .../src/components/TableOfContents/TableOfContents.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/gitbook/src/components/TableOfContents/TableOfContents.tsx b/packages/gitbook/src/components/TableOfContents/TableOfContents.tsx index 4921e495f..8f2ebe7e7 100644 --- a/packages/gitbook/src/components/TableOfContents/TableOfContents.tsx +++ b/packages/gitbook/src/components/TableOfContents/TableOfContents.tsx @@ -16,11 +16,7 @@ import { PagesList } from './PagesList'; import { TOCScrollContainer } from './TOCScroller'; import { Trademark } from './Trademark'; -function getTopOffset(props: { - sectionsHeader: boolean; - topHeader: boolean; - sidebarBackgroundFilled: boolean; -}) { +function getTopOffset(props: { sectionsHeader: boolean; topHeader: boolean }) { if (props.topHeader && props.sectionsHeader) { return 'lg:top-[6.75rem] lg:h-[calc(100vh_-_6.75rem)]'; } @@ -43,7 +39,6 @@ export function TableOfContents(props: { headerOffset: { sectionsHeader: boolean; topHeader: boolean; - sidebarBackgroundFilled: boolean; }; innerHeader?: React.ReactNode; // Displayed outside the scrollable TOC, directly above the page list }) {