From ed6b260fc32ac75f6c8f2a386975a7d2c3729fe7 Mon Sep 17 00:00:00 2001 From: omckeon Date: Tue, 13 Aug 2024 22:05:36 +1000 Subject: [PATCH] Update sidebar navigation to "center" --- src/components/Sidebar.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index 92a6147d..8a2047c1 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -96,7 +96,7 @@ const { sidebar } = Astro.props; liRect.top < sidebarRect.top || liRect.bottom > sidebarRect.bottom ) { - activeLi.scrollIntoView({ behavior: "instant", block: "nearest" }); + activeLi.scrollIntoView({ behavior: "instant", block: "center" }); } }