重构布局组件,优化导航栏和头部结构;调整样式以改善响应式设计

This commit is contained in:
2025-06-09 11:17:38 +08:00
parent 5ba7d45e97
commit 1383f2028a
13 changed files with 119 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
import {ReactNode} from 'react'
import {merge} from '@/lib/utils'
import Header from './_client/header'
import Navbar from '@/app/admin/_client/navbar'
import Navbar from './_client/navbar'
import Layout from './_client/layout'
export type AdminLayoutProps = {
children: ReactNode
@@ -9,17 +9,10 @@ export type AdminLayoutProps = {
export default async function AdminLayout(props: AdminLayoutProps) {
return (
<div className={merge(
`h-screen bg-card overflow-hidden min-w-7xl overflow-y-hidden`,
`flex items-stretch`,
)}>
<Navbar/>
<div className="flex-auto flex flex-col items-stretch">
<Header/>
{props.children}
</div>
</div>
<Layout
navbar={<Navbar/>}
header={<Header/>}
content={props.children}
/>
)
}