docs: removed 1px from headerbar height variable. (#2391)

* fix(docs): removed 1px from headerbar height variable.

* fix(docs): fixed sidebar height issue and made it pixel perfect

* fix(docs): fixed scroll bumping issue when scrolling the  from top

* fix(docs): fixed scroll bumping issue when scrolling the  from top
This commit is contained in:
Legion
2025-04-22 09:20:51 +05:30
committed by GitHub
parent eccfcc3b31
commit b23bf618fd
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
@source '../../node_modules/fumadocs-ui/dist/**/*.js';
@source '../node_modules/fumadocs-ui/dist/**/*.js';
:root {
--fd-nav-height: 57px;
--fd-nav-height: 56px;
--background: oklch(1 0 0);
@@ -241,7 +241,7 @@
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
@apply bg-background text-foreground overscroll-none;
}
}

View File

@@ -39,7 +39,7 @@ export default function ArticleLayout() {
<aside
className={cn(
"md:transition-all",
"border-r border-lines md:flex hidden md:w-[268px] lg:w-[286px] overflow-y-auto absolute top-[58px] h-[92dvh] flex-col justify-between w-[var(--fd-sidebar-width)]",
"border-r border-lines md:flex hidden md:w-[268px] lg:w-[286px] overflow-y-auto absolute top-[57px] h-[calc(92dvh--7px)] flex-col justify-between w-[var(--fd-sidebar-width)]",
)}
>
<div>