diff --git a/beta/src/components/Layout/Feedback.tsx b/beta/src/components/Layout/Feedback.tsx index 700612e8..f0697f24 100644 --- a/beta/src/components/Layout/Feedback.tsx +++ b/beta/src/components/Layout/Feedback.tsx @@ -61,7 +61,7 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) { const [isSubmitted, setIsSubmitted] = React.useState(false); return (
-

+

{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}

{!isSubmitted && ( diff --git a/beta/src/components/Layout/Footer.tsx b/beta/src/components/Layout/Footer.tsx index 20b555bf..d2707dbe 100644 --- a/beta/src/components/Layout/Footer.tsx +++ b/beta/src/components/Layout/Footer.tsx @@ -13,7 +13,7 @@ export function Footer() { const socialLinkClasses = 'hover:text-primary dark:text-primary-dark'; return ( <> -
+

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 && (
-
- {!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 ( - <> -