From 336e6d48c5825b29a98e5a141896b3194dca6f6f Mon Sep 17 00:00:00 2001 From: Nikolay Tatarinov Date: Tue, 3 Mar 2026 19:47:49 +0300 Subject: [PATCH] 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. --- webapp-next/src/components/ui/sheet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp-next/src/components/ui/sheet.tsx b/webapp-next/src/components/ui/sheet.tsx index 564dee1..350eb61 100644 --- a/webapp-next/src/components/ui/sheet.tsx +++ b/webapp-next/src/components/ui/sheet.tsx @@ -80,7 +80,7 @@ function SheetContent({ forceMount={useForceMount ? true : undefined} onAnimationEnd={handleAnimationEnd} 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" && "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" &&