From ed2141af22a6103ea5be850eff57be7f24d9011b Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 16 Sep 2024 16:41:39 +0800 Subject: [PATCH] refactor: improve admin style in status page --- src/client/components/monitor/StatusPage/index.tsx | 9 ++++++--- src/client/routes/page/$slug.tsx | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/client/components/monitor/StatusPage/index.tsx b/src/client/components/monitor/StatusPage/index.tsx index 050217f..5682727 100644 --- a/src/client/components/monitor/StatusPage/index.tsx +++ b/src/client/components/monitor/StatusPage/index.tsx @@ -21,16 +21,18 @@ import { SheetHeader, SheetTrigger, } from '@/components/ui/sheet'; +import { cn } from '@/utils/style'; interface MonitorStatusPageProps { slug: string; showBackBtn?: boolean; + fullWidth?: boolean; } export const MonitorStatusPage: React.FC = React.memo( (props) => { const { t } = useTranslation(); - const { slug, showBackBtn = true } = props; + const { slug, showBackBtn = true, fullWidth } = props; const { data: info } = trpc.monitor.getPageInfo.useQuery({ slug, @@ -120,8 +122,9 @@ export const MonitorStatusPage: React.FC = React.memo(
diff --git a/src/client/routes/page/$slug.tsx b/src/client/routes/page/$slug.tsx index 62c5689..da728d3 100644 --- a/src/client/routes/page/$slug.tsx +++ b/src/client/routes/page/$slug.tsx @@ -86,7 +86,7 @@ function PageComponent() { /> } > - + ); }