fix: instant backdrop render prevents chart flash through glass modal

This commit is contained in:
Usman Baig
2026-03-25 23:19:27 +01:00
parent d13372c864
commit 603e910d40

View File

@@ -376,12 +376,8 @@ export default function UnifiedSettingsModal() {
<AnimatePresence>
{isOpen && (
<>
{/* Backdrop */}
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
{/* Backdrop — no opacity animation to prevent chart flash through glass */}
<div
className="fixed inset-0 z-[60] bg-black/60 backdrop-blur-sm"
onClick={handleBackdropClick}
/>