diff --git a/src/components/TableOfContent/TableOfContent.tsx b/src/components/TableOfContent/TableOfContent.tsx index 890859ac8..4b312582e 100644 --- a/src/components/TableOfContent/TableOfContent.tsx +++ b/src/components/TableOfContent/TableOfContent.tsx @@ -25,7 +25,7 @@ export function TableOfContent(props: TableOfContentProps) { className={cn( 'relative min-w-[250px] px-5 pt-0 max-lg:min-w-full max-lg:max-w-full max-lg:border-none max-lg:px-0 lg:pt-10', { - 'top-0 lg:sticky': totalRows <= 20, + 'top-0 lg:!sticky': totalRows <= 20, }, )} > @@ -46,7 +46,7 @@ export function TableOfContent(props: TableOfContentProps) {
    {heading.children.length > 0 && ( -
      +
        {heading.children.map((children) => { return (