summaryrefslogtreecommitdiff
path: root/docs/src/components/SiteSidebar.astro
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/components/SiteSidebar.astro')
-rw-r--r--docs/src/components/SiteSidebar.astro12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/src/components/SiteSidebar.astro b/docs/src/components/SiteSidebar.astro
index 6d003d71d..33e9fbfb6 100644
--- a/docs/src/components/SiteSidebar.astro
+++ b/docs/src/components/SiteSidebar.astro
@@ -24,13 +24,15 @@ const {currentPage} = Astro.props;
<style>
nav {
position: sticky;
- min-height: calc(100vh - 3.5rem);
- height: calc(100vh - 3.5rem);
- top: 3.5rem;
+ min-height: calc(100vh - var(--theme-navbar-height));
+ height: calc(100vh - var(--theme-navbar-height));
+ top: var(--theme-navbar-height);
+ width: 100%;
+ margin-right: 1rem;
}
.nav-groups {
height: 100%;
- padding: 2rem 0;
+ padding: 0;
overflow: auto;
}
@@ -66,4 +68,4 @@ const {currentPage} = Astro.props;
font-weight: 600;
}
-</style> \ No newline at end of file
+</style>