From 93209a5bba754a0e3567e5b575771ee9572b665c Mon Sep 17 00:00:00 2001 From: saicaca Date: Fri, 20 Sep 2024 00:33:50 +0800 Subject: [PATCH] fix: fix the top margin of sticky sidebar (#184) --- src/layouts/Layout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4ce6ffe..1259d00 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -178,7 +178,7 @@ const bannerOffset = bannerOffsetByPosition[siteConfig.banner.position || 'cente @apply h-[calc(var(--banner-height-home)_-_4.5rem)] transition-all duration-300 } .enable-banner.is-home #sidebar-sticky { - @apply -top-[30vh] + @apply top-[calc(-30vh_+_1rem)] } .navbar-hidden { @apply opacity-0 -translate-y-16