diff --git a/dokz/src/components/FloatingTableOfContents.tsx b/dokz/src/components/FloatingTableOfContents.tsx index e29b906..67216c2 100644 --- a/dokz/src/components/FloatingTableOfContents.tsx +++ b/dokz/src/components/FloatingTableOfContents.tsx @@ -7,7 +7,7 @@ import parseGithubUrl from 'parse-github-url' import { useDokzConfig } from '../provider' export function FloatingTableOfContents({ - table, + table, ...rest }: { table: DokzTableOfContents @@ -25,12 +25,11 @@ export function FloatingTableOfContents({ return ( {githubUrl && ( @@ -48,10 +47,12 @@ export function FloatingTableOfContents({ )} {/* ON THIS PAGE */} - {table.children && - table.children.map((table) => { - return - })} + + {table.children && + table.children.map((table) => { + return + })} + ) } diff --git a/dokz/src/components/Wrapper.tsx b/dokz/src/components/Wrapper.tsx index f05c423..36ce92e 100644 --- a/dokz/src/components/Wrapper.tsx +++ b/dokz/src/components/Wrapper.tsx @@ -23,7 +23,7 @@ import { globalStyles, getMdxSidebarTree } from './support' import { FooterButtons } from './FooterButtons' const SIDENAV_W = 280 -const TABLE_OF_C_W = 200 +const TABLE_OF_C_W = 250 const NAVBAR_H = 62 @@ -145,9 +145,8 @@ export function Wrapper(props) { position='sticky' alignSelf='flex-start' top={NAVBAR_H} - width={TABLE_OF_C_W + 'px'} + width={TABLE_OF_C_W} // right={0} - ml='auto' height='auto' display={['none', null, null, null, 'block']} pt='20px'