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