From 9c657a6dbe1fcff86aa5f0c0cf70c064799bbada Mon Sep 17 00:00:00 2001 From: Tyrel Chambers Date: Mon, 6 Oct 2025 15:33:08 -0400 Subject: [PATCH 1/4] Remove DocsNavigation from DocsLayout. Update styling to accomodate. --- src/components/Header/NavBar.tsx | 10 +++------- src/components/LeftSidebar/LeftSidebar.astro | 2 +- src/components/LeftSidebar/leftSidebar.module.css | 2 +- src/components/PageContent/PageContent.astro | 3 +-- src/layouts/DocsLayout.astro | 2 -- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/components/Header/NavBar.tsx b/src/components/Header/NavBar.tsx index 404af835727..108ab4c6cd7 100644 --- a/src/components/Header/NavBar.tsx +++ b/src/components/Header/NavBar.tsx @@ -35,13 +35,9 @@ export const NavBar = ({ / - if the page has been scrolled down and the header is hidden / - if the page is a inner doc page or part of the "pathWithoutDocNav" or not */ - const innerDocNavHeight = 56 - let height = (navRef.current as HTMLElement).clientHeight - let baseHeightNoNav = 0 - if (doubleNavbar()) { - height += innerDocNavHeight - baseHeightNoNav += innerDocNavHeight - } + const height = (navRef.current as HTMLElement).clientHeight + const baseHeightNoNav = 0 + const elements = document.body.querySelectorAll("[data-sticky]") elements.forEach((e: HTMLElement) => { if (!e.classList.contains(styles.animateTop)) { diff --git a/src/components/LeftSidebar/LeftSidebar.astro b/src/components/LeftSidebar/LeftSidebar.astro index 2987c6f3adb..7443eeb961d 100644 --- a/src/components/LeftSidebar/LeftSidebar.astro +++ b/src/components/LeftSidebar/LeftSidebar.astro @@ -74,7 +74,7 @@ function removeSlashes(url: string): string { const sidebarSections = getSidebarSections(section) --- -