Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(react): make ScrollArea viewport properly scrollable with max-height (#747)

Brad Barbinab723e733c71
diff --git a/packages/react/src/ScrollArea.tsx b/packages/react/src/ScrollArea.tsx
index 3aa2d2880c..22a6468d49 100644
--- a/packages/react/src/ScrollArea.tsx
+++ b/packages/react/src/ScrollArea.tsx
@@ -12,7 +12,7 @@ const ScrollArea = React.forwardRef<
className={cn("relative overflow-hidden", className)}
{...props}
>
- <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
+ <ScrollAreaPrimitive.Viewport className="h-full max-h-[inherit] w-full rounded-[inherit] [&>div]:!block">
{children}
</ScrollAreaPrimitive.Viewport>
<ScrollBar />