fix: adjust animation duration for SheetContent component

- Updated the animation duration for the open state of the SheetContent component from 500ms to 300ms, improving the responsiveness of the UI during state transitions.
This commit is contained in:
2026-03-03 19:47:49 +03:00
parent 07d08bb179
commit 336e6d48c5

View File

@@ -80,7 +80,7 @@ function SheetContent({
forceMount={useForceMount ? true : undefined} forceMount={useForceMount ? true : undefined}
onAnimationEnd={handleAnimationEnd} onAnimationEnd={handleAnimationEnd}
className={cn( className={cn(
"fixed z-50 flex flex-col gap-4 bg-background shadow-lg data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=closed]:ease-out data-[state=open]:animate-in data-[state=open]:duration-500", "fixed z-50 flex flex-col gap-4 bg-background shadow-lg data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=closed]:ease-out data-[state=open]:animate-in data-[state=open]:duration-300",
side === "right" && side === "right" &&
"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm", "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
side === "left" && side === "left" &&