From 2be0841a54d9a0ea669c10d05a9136f9abc698b7 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 26 Mar 2026 00:01:22 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20hide=20all=20modal=20content=20when=20cl?= =?UTF-8?q?osed=20=E2=80=94=20empty=20glass=20box=20keeps=20GPU=20blur=20w?= =?UTF-8?q?arm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/unified/UnifiedSettingsModal.tsx | 151 +++++++++--------- 1 file changed, 77 insertions(+), 74 deletions(-) diff --git a/components/settings/unified/UnifiedSettingsModal.tsx b/components/settings/unified/UnifiedSettingsModal.tsx index 82e20da..88e9d23 100644 --- a/components/settings/unified/UnifiedSettingsModal.tsx +++ b/components/settings/unified/UnifiedSettingsModal.tsx @@ -392,81 +392,84 @@ export default function UnifiedSettingsModal() { className="w-full max-w-3xl h-[85vh] bg-neutral-900/65 backdrop-blur-3xl backdrop-saturate-150 supports-[backdrop-filter]:bg-neutral-900/60 border border-white/[0.08] rounded-2xl shadow-xl shadow-black/20 flex flex-col overflow-hidden" onClick={e => e.stopPropagation()} > - {/* Header */} -
-
-

Settings

- -
- - {/* Context Switcher */} - s.id === activeSiteId)?.domain ?? null} - /> - - {/* Tabs */} -
- -
-
- - {/* Content — only render tab content when open to avoid unnecessary SWR calls */} -
- {isOpen && ( - - - - - - )} -
- - {/* Save bar */} - - {isDirtyVisible && ( - -
- - {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} - -
- {hasPendingAction && ( - - )} - -
+ {/* All content gated by isOpen — empty glass box when closed (GPU keeps blur warm) */} + {isOpen && ( + <> + {/* Header */} +
+
+

Settings

+
- - )} - + + {/* Context Switcher */} + s.id === activeSiteId)?.domain ?? null} + /> + + {/* Tabs */} +
+ +
+
+ + {/* Content */} +
+ + + + + +
+ + {/* Save bar */} + + {isDirtyVisible && ( + +
+ + {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} + +
+ {hasPendingAction && ( + + )} + +
+
+
+ )} +
+ + )}