diff --git a/beta/src/components/Layout/MarkdownPage.tsx b/beta/src/components/Layout/MarkdownPage.tsx
index 57b3b250..21d05865 100644
--- a/beta/src/components/Layout/MarkdownPage.tsx
+++ b/beta/src/components/Layout/MarkdownPage.tsx
@@ -34,7 +34,7 @@ export function MarkdownPage<
const isHomePage = route?.path === '/';
return (
<>
-
-
- {!isHomePage && toc.length > 0 && }
-
>
);
}
diff --git a/beta/src/components/Layout/Nav/Nav.tsx b/beta/src/components/Layout/Nav/Nav.tsx
index e682dfff..a6afc026 100644
--- a/beta/src/components/Layout/Nav/Nav.tsx
+++ b/beta/src/components/Layout/Nav/Nav.tsx
@@ -99,7 +99,7 @@ const lightIcon = (
export default function Nav() {
const [isOpen, setIsOpen] = React.useState(false);
const [showFeedback, setShowFeedback] = React.useState(false);
- const menuRef = React.useRef
(null);
+ const scrollParentRef = React.useRef(null);
const feedbackAutohideRef = React.useRef(null);
const section = useActiveSection();
const {asPath} = useRouter();
@@ -136,7 +136,7 @@ export default function Nav() {
// While the overlay is open, disable body scroll.
React.useEffect(() => {
if (isOpen) {
- const preferredScrollParent = menuRef.current!;
+ const preferredScrollParent = scrollParentRef.current!;
disableBodyScroll(preferredScrollParent);
return () => enableBodyScroll(preferredScrollParent);
} else {
@@ -190,9 +190,14 @@ export default function Nav() {
capture: true,
});
}, [showFeedback]);
+
return (
- <>
-