From aaa7666d66f297bccc4f9b9caa4dd476f27c99d9 Mon Sep 17 00:00:00 2001 From: logan Date: Sun, 31 May 2026 23:08:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=E7=BB=84=E4=BB=B6=20padding=20+=20=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ModalOverlay: 内容容器加 p-6 + border + shadow-xl - alert-dialog: 统一主题变量 bg-[var(--dg-bg-secondary)] + rounded-xl - sheet: SheetContent 加 p-6,移除 Header/Footer 重复 p-4 - drawer: DrawerContent 加 p-6,移除 Header/Footer 重复 p-4 - 所有弹框统一: p-6 padding + dg-border + shadow-xl + z-[101] --- frontend/src/components/ModalOverlay.tsx | 2 +- frontend/src/components/ui/alert-dialog.tsx | 2 +- frontend/src/components/ui/drawer.tsx | 6 +++--- frontend/src/components/ui/sheet.tsx | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/ModalOverlay.tsx b/frontend/src/components/ModalOverlay.tsx index 2c9fc74..497b459 100644 --- a/frontend/src/components/ModalOverlay.tsx +++ b/frontend/src/components/ModalOverlay.tsx @@ -36,7 +36,7 @@ export function ModalOverlay({ open, onClose, width = 'max-w-lg', className = '' return (
e.stopPropagation()} > {children} diff --git a/frontend/src/components/ui/alert-dialog.tsx b/frontend/src/components/ui/alert-dialog.tsx index 935eecf..c3454c1 100644 --- a/frontend/src/components/ui/alert-dialog.tsx +++ b/frontend/src/components/ui/alert-dialog.tsx @@ -52,7 +52,7 @@ function AlertDialogContent({ ) {
) { return (
) diff --git a/frontend/src/components/ui/sheet.tsx b/frontend/src/components/ui/sheet.tsx index 6906f5b..c37edb3 100644 --- a/frontend/src/components/ui/sheet.tsx +++ b/frontend/src/components/ui/sheet.tsx @@ -56,7 +56,7 @@ function SheetContent({ ) { return (
) @@ -93,7 +93,7 @@ function SheetFooter({ className, ...props }: React.ComponentProps<"div">) { return (
)