From 585658d0803b2d3330f28e50fb7f2e0a2c401159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Quiroz?= Date: Wed, 15 Mar 2023 10:58:41 -0300 Subject: [PATCH] feat: add scroll to DocumentNav when content has overflow (#26885) * feat: add scroll to DocumentNav when content has overflow * Update src/components/UI/docs/DocumentNav.tsx Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --------- Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/components/UI/docs/DocumentNav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UI/docs/DocumentNav.tsx b/src/components/UI/docs/DocumentNav.tsx index 66cbcfa1fd..6ed28e9873 100644 --- a/src/components/UI/docs/DocumentNav.tsx +++ b/src/components/UI/docs/DocumentNav.tsx @@ -20,7 +20,7 @@ export const DocumentNav: FC = ({ content }) => { const activeHash = useActiveHash(parsedHeadings.map(heading => heading!.headingId)); return parsedHeadings.length ? ( - + on this page {parsedHeadings.map((heading, idx) => {