Open source CapCut alternative.
TypeScript
fix(site): a scroll area scrolls instead of growing with its content
David Le1cd380ebc924
diff --git a/site/src/components/ui/scroll-area.tsx b/site/src/components/ui/scroll-area.tsxindex ac98cfc5..70cd1f8e 100644--- a/site/src/components/ui/scroll-area.tsx+++ b/site/src/components/ui/scroll-area.tsx@@ -31,7 +31,11 @@ function ScrollArea({return (<ScrollAreaPrimitive.Rootdata-slot="scroll-area"- className={cn("relative", className)}+ // A column, so the viewport's height comes from the flex line rather+ // than a percentage: the root is itself a flex item in most of the app,+ // its own height is auto, and `height: 100%` against that resolves to+ // the content — which grows the scroller instead of scrolling it.+ className={cn("relative flex flex-col", className)}{...props}><ScrollAreaPrimitive.Viewport@@ -39,7 +43,7 @@ function ScrollArea({ref={viewportRef}onScroll={onViewportScroll}className={cn(- "size-full rounded-[inherit] outline-none",+ "min-h-0 w-full flex-1 rounded-[inherit] outline-none",viewportClassName)}>