fix: list animation

This commit is contained in:
ner committed 2023-12-29 18:49:31 +02:00
1 parent 345e7cfc90
commit 5f0dac673d
3 files changed
+14 -12

No files matched your search

+2 -2
View File
@@ -48,11 +48,11 @@ const DialogContent = React.forwardRef<
animate={{ top: '20vh' }}
exit={{ top: '100vh' }}
drag='y'
dragConstraints={{ top: 0, bottom: 300 }}
dragConstraints={{ top: 0, bottom: 0 }}
onDragEnd={(_, info) => info.offset.y > 100 && props.onClose?.()}
dragListener={false}
dragControls={controls}
dragElastic={0.5}
dragElastic={0.8}
>
<DialogPrimitive.Content
ref={ref}