mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 04:58:27 +00:00
fix: left sidebar scroll
This commit is contained in:
parent
e946e1e01e
commit
9539c6d317
@ -14,7 +14,7 @@ const langCode = 'en'; // getLanguageFromURL(currentPage);
|
|||||||
const sidebar = SIDEBAR[langCode];
|
const sidebar = SIDEBAR[langCode];
|
||||||
---
|
---
|
||||||
|
|
||||||
<nav aria-labelledby="grid-left">
|
<nav aria-labelledby="grid-left" class="max-h-full overflow-auto pb-20">
|
||||||
<ul>
|
<ul>
|
||||||
{
|
{
|
||||||
Object.entries(sidebar).map(([header, children]) => (
|
Object.entries(sidebar).map(([header, children]) => (
|
||||||
|
|||||||
@ -38,7 +38,7 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;
|
|||||||
</header>
|
</header>
|
||||||
<main class="relative pt-16">
|
<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">
|
<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} />
|
<LeftSidebar currentPage={currentPage} />
|
||||||
</aside>
|
</aside>
|
||||||
<PageContent frontmatter={frontmatter} headings={headings} githubEditUrl={githubEditUrl}>
|
<PageContent frontmatter={frontmatter} headings={headings} githubEditUrl={githubEditUrl}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user