фикс блюра
All checks were successful
Build and Push Docker Image / build (push) Successful in 38s

This commit is contained in:
2025-12-25 17:02:31 +03:00
parent 79b146786b
commit 58f99122ab

View File

@@ -15,8 +15,8 @@ interface ModalProps {
}
const modalbgVariants = {
closed: { opacity: 0 },
open: { opacity: 1 },
closed: { opacity: 0, backdropFilter: 'blur(0px)' },
open: { opacity: 1, backdropFilter: 'blur(6px)' },
};
const modalVariants = {
@@ -47,13 +47,15 @@ export const Modal: React.FC<ModalProps> = ({
exit={modalbgVariants.closed}
transition={{ duration: 0.15 }}
className={cn(
' fixed top-0 left-0 h-svh w-svw backdrop-filter transition-[background-color,backdrop-filter,opacity] z-50',
backdrop == 'blur' && open && 'backdrop-blur-sm',
backdrop == 'opaque' &&
open &&
'bg-[#00000055] pointer-events-none',
'fixed top-0 left-0 h-svh w-svw z-50',
backdrop === 'opaque' && 'bg-[#00000055]',
)}
></motion.div>
style={
backdrop === 'blur'
? undefined
: { backdropFilter: 'none' }
}
/>
)}
</AnimatePresence>
<div className="fixed top-0 left-0 h-svh w-svw flex items-center justify-center pointer-events-none z-50">