fix: left sidebar scroll

This commit is contained in:
Felix Roos 2023-01-21 17:14:18 +01:00
parent e946e1e01e
commit 9539c6d317
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ const langCode = 'en'; // getLanguageFromURL(currentPage);
const sidebar = SIDEBAR[langCode];
---
<nav aria-labelledby="grid-left">
<nav aria-labelledby="grid-left" class="max-h-full overflow-auto pb-20">
<ul>
{
Object.entries(sidebar).map(([header, children]) => (

View File

@ -38,7 +38,7 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
</header>
<main class="relative pt-16">
<div class="h-full top-0 overflow-auto min-w-[300px] flex xl:justify-center pr-4 pl-4 md:pl-[300px] xl:pl-0">
<aside title="Site Navigation" class="w-[300px] px-6 left-0 hidden md:block fixed">
<aside title="Site Navigation" class="w-[300px] px-6 left-0 hidden md:block fixed h-full">
<LeftSidebar currentPage={currentPage} />
</aside>
<PageContent frontmatter={frontmatter} headings={headings} githubEditUrl={githubEditUrl}>