From 5933394cda671ef57a6ccd3560d6c567b2dc731d Mon Sep 17 00:00:00 2001 From: luorijun Date: Thu, 20 Nov 2025 18:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F=E4=B8=8E=E5=BC=B9=E7=AA=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/admin/_client/layout.tsx | 8 +++--- src/app/admin/_client/navbar.tsx | 8 +++--- .../admin/_client/passwordSetupWrapper.tsx | 21 --------------- src/app/admin/layout.tsx | 27 +++++++++---------- 4 files changed, 20 insertions(+), 44 deletions(-) delete mode 100644 src/app/admin/_client/passwordSetupWrapper.tsx diff --git a/src/app/admin/_client/layout.tsx b/src/app/admin/_client/layout.tsx index f1e33d1..f5e1285 100644 --- a/src/app/admin/_client/layout.tsx +++ b/src/app/admin/_client/layout.tsx @@ -6,7 +6,7 @@ import {merge} from '@/lib/utils' type AdminLayoutProps = { navbar: ReactNode header: ReactNode - content: ReactNode + children: ReactNode } export default function Layout(props: AdminLayoutProps) { @@ -70,11 +70,11 @@ export default function Layout(props: AdminLayoutProps) { className={merge( `transition-[margin] duration-300 ease-in-out`, `absolute inset-0 overflow-hidden`, - `mt-[64px]`, - `md:ml-[64px]`, + `mt-16`, + `md:ml-16`, `lg:data-[expand=true]:ml-[200px]`, )}> - {props.content} + {props.children} ) diff --git a/src/app/admin/_client/navbar.tsx b/src/app/admin/_client/navbar.tsx index 3373eae..1c928c6 100644 --- a/src/app/admin/_client/navbar.tsx +++ b/src/app/admin/_client/navbar.tsx @@ -36,7 +36,7 @@ export default function Navbar(props: NavbarProps) { logo {props.label} @@ -129,7 +129,7 @@ function NavItem(props: { - - - - - ) -} diff --git a/src/app/admin/layout.tsx b/src/app/admin/layout.tsx index 3278f33..9471e81 100644 --- a/src/app/admin/layout.tsx +++ b/src/app/admin/layout.tsx @@ -23,20 +23,17 @@ export default async function AdminLayout(props: AdminLayoutProps) { } header={
} - content={( - <> - {props.children} - - - - )} - /> + > + {props.children} + + + ) }