Skip to content

Commit

Permalink
Update TableOfContents.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zenoachtig committed Jan 7, 2025
1 parent 958a7e9 commit 7104adc
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]';
}
Expand All @@ -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
}) {
Expand Down

0 comments on commit 7104adc

Please sign in to comment.