From 978b8c804626fd2d2d463e938b141fac9271cc81 Mon Sep 17 00:00:00 2001 From: Dan Lebo Date: Sun, 5 Feb 2023 20:19:39 -0800 Subject: [PATCH] nav fixes, aligning headings --- beta/src/components/Layout/Page.tsx | 6 +++--- beta/src/components/Layout/Toc.tsx | 2 +- beta/src/components/Layout/TopNav/TopNav.tsx | 17 +++++++++-------- beta/src/components/PageHeading.tsx | 2 +- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/beta/src/components/Layout/Page.tsx b/beta/src/components/Layout/Page.tsx index 08fe22ee9..edc336115 100644 --- a/beta/src/components/Layout/Page.tsx +++ b/beta/src/components/Layout/Page.tsx @@ -97,8 +97,8 @@ export function Page({children, toc, routeTree, meta, section}: PageProps) { section === 'blog' && 'max-w-5xl mx-auto' )}> {showSidebar && ( -
-
+
+
-
+
{showToc && toc.length > 0 && }
diff --git a/beta/src/components/Layout/Toc.tsx b/beta/src/components/Layout/Toc.tsx index bc3125b99..1f048aef4 100644 --- a/beta/src/components/Layout/Toc.tsx +++ b/beta/src/components/Layout/Toc.tsx @@ -13,7 +13,7 @@ export function Toc({headings}: {headings: Toc}) { // Select the max TOC item we have here for now, but remove this after the fix. const selectedIndex = Math.min(currentIndex, headings.length - 1); return ( -