mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-07-28 04:34:58 +00:00
UI: improve home layout navbar
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@fumadocs/base-ui": patch
|
||||
---
|
||||
|
||||
fix home layout navbar
|
||||
@@ -73,7 +73,7 @@ export function Header({
|
||||
transparentMode={nav.transparentMode}
|
||||
className={cn(s.open && 'shadow-lg rounded-b-2xl')}
|
||||
>
|
||||
<div className="flex h-14 w-full items-center px-4">
|
||||
<div className="flex h-14 w-full items-center px-4 mx-auto max-w-(--fd-layout-width)">
|
||||
{renderTitleNav(nav, {
|
||||
className: 'inline-flex items-center gap-2.5 font-semibold',
|
||||
})}
|
||||
@@ -228,7 +228,7 @@ function HeaderRoot({
|
||||
render={(_, s) => (
|
||||
<nav
|
||||
className={cn(
|
||||
'w-full backdrop-blur-lg border-b transition-colors mx-auto max-w-(--fd-layout-width)',
|
||||
'backdrop-blur-lg border-b transition-colors',
|
||||
(!isTransparent || s.open) && 'bg-fd-background/80',
|
||||
className,
|
||||
)}
|
||||
|
||||
@@ -33,7 +33,7 @@ export async function processDocument(input: string | Document): Promise<Process
|
||||
},
|
||||
},
|
||||
})
|
||||
.then((v) => upgrade(v as never, '3.2'))
|
||||
.then((v) => upgrade(v as never, '3.2') as Document)
|
||||
.catch((e) => {
|
||||
throw new Error(`[OpenAPI] Failed to resolve input: ${input}`, {
|
||||
cause: e,
|
||||
|
||||
Reference in New Issue
Block a user