fix: update sidebar animation ease (#83)

This commit is contained in:
shadcn 2023-07-05 22:39:51 +04:00 committed by GitHub
parent 9c25c3f4b2
commit b932b238ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ const SheetContent = React.forwardRef<
<SheetPrimitive.Content <SheetPrimitive.Content
ref={ref} ref={ref}
className={cn( className={cn(
'fixed z-50 h-full border-r bg-background p-6 opacity-100 shadow-lg data-[state=closed]:animate-slide-to-left data-[state=open]:animate-slide-from-left', 'fixed inset-y-0 left-0 z-50 h-full border-r bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left data-[state=closed]:duration-300 data-[state=open]:duration-500 sm:max-w-sm',
className className
)} )}
{...props} {...props}