From ff94ea7116196b85602bd5df5981b58eacee0ef4 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 4 Apr 2024 17:01:39 +0100 Subject: [PATCH] Sticky sidebar --- src/components/TableOfContent/TableOfContent.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (