fix: instant open/close — no animation prevents glass seep on close
This commit is contained in:
@@ -382,12 +382,10 @@ export default function UnifiedSettingsModal() {
|
|||||||
onClick={handleBackdropClick}
|
onClick={handleBackdropClick}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Modal — always mounted, no opacity animation (prevents backdrop-filter flash) */}
|
{/* Modal — always mounted, instant show/hide (glass + animation = flash) */}
|
||||||
<div
|
<div
|
||||||
className={`fixed inset-0 z-[61] flex items-center justify-center p-4 transition-transform duration-200 ease-out ${
|
className={`fixed inset-0 z-[61] flex items-center justify-center p-4 ${
|
||||||
isOpen
|
isOpen ? 'visible pointer-events-auto' : 'invisible pointer-events-none'
|
||||||
? 'visible scale-100 translate-y-0 pointer-events-auto'
|
|
||||||
: 'invisible scale-[0.97] translate-y-2 pointer-events-none'
|
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user