From a67983dc3cc9be9468101c43c238ae42e83f789a Mon Sep 17 00:00:00 2001 From: bincxz <16399091+binaricat@users.noreply.github.com> Date: Thu, 11 Dec 2025 04:48:47 +0800 Subject: [PATCH] Improves dialog appearance and backdrop behavior Unifies custom box shadow styling for modal dialogs to enhance visual consistency. Adds backdrop click handlers to dialog overlays, enabling users to dismiss dialogs by clicking outside the content area, while preventing accidental closure when interacting with the dialog itself. --- components/ProtocolSelectDialog.tsx | 4 ++-- components/QuickConnectWizard.tsx | 4 ++-- components/ui/dialog.tsx | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/ProtocolSelectDialog.tsx b/components/ProtocolSelectDialog.tsx index 310591c1d..cd22d0d67 100644 --- a/components/ProtocolSelectDialog.tsx +++ b/components/ProtocolSelectDialog.tsx @@ -110,8 +110,8 @@ const ProtocolSelectDialog: React.FC = ({ }, [protocolOptions]); return ( -
-
+
+
e.stopPropagation()}> {/* Header */}
diff --git a/components/QuickConnectWizard.tsx b/components/QuickConnectWizard.tsx index 346bd00d5..6af120485 100644 --- a/components/QuickConnectWizard.tsx +++ b/components/QuickConnectWizard.tsx @@ -603,8 +603,8 @@ const QuickConnectWizard: React.FC = ({ }; return ( -
-
+
+
e.stopPropagation()}> {/* Header */}
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx index 0f83d8dc0..164b143da 100755 --- a/components/ui/dialog.tsx +++ b/components/ui/dialog.tsx @@ -36,9 +36,10 @@ const DialogContent = React.forwardRef< {children}