From 7f91a7a24b38b6c8d4dc8fa8dd157abeb850b34b Mon Sep 17 00:00:00 2001 From: Diyorbek Sadullaev Date: Wed, 30 Aug 2023 19:17:33 +0200 Subject: [PATCH] Docs: Fix ToC overflow (#3176) --- docs/docs-components/Toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs-components/Toc.js b/docs/docs-components/Toc.js index abe7370989..87caf4e9d1 100644 --- a/docs/docs-components/Toc.js +++ b/docs/docs-components/Toc.js @@ -205,7 +205,7 @@ export default function Toc({ cards }: Props): Node { mdMarginTop={-6} lgMarginTop={-8} maxHeight={`calc(100% - ${HEADER_HEIGHT_PX}px - ${FOOTER_HEIGHT_PX}px)`} - overflow="visible" + overflow="auto" paddingX={1} paddingY={8} // re-apply just the padding we need position="fixed"