UI: fix banner overlapping with collapsible control

This commit is contained in:
Fuma Nama
2025-04-14 11:53:58 +08:00
parent e1a61bfbbe
commit 4d50bcfea1
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-ui': patch
---
fix banner overlapping with collapsible control
+6 -1
View File
@@ -55,7 +55,12 @@ export function CollapsibleControl() {
if (!collapsed) return;
return (
<div className="fixed flex flex-row items-center animate-fd-fade-in rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10 top-12 shadow-md max-md:hidden xl:top-4 xl:start-4 max-xl:end-4">
<div
className="fixed flex flex-row animate-fd-fade-in rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10 xl:start-4 max-xl:end-4"
style={{
top: 'calc(var(--fd-banner-height) + var(--fd-tocnav-height) + var(--spacing) * 4)',
}}
>
<SidebarCollapseTrigger
className={cn(
buttonVariants({