fix: the document is rendered as a table due to a bug in the scroll area (#1291)

This commit is contained in:
Chuck
2025-02-13 10:04:11 +08:00
committed by GitHub
parent d36eac0ea5
commit 4218ea0ba4

View File

@@ -14,7 +14,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 w-full rounded-[inherit] [&>div]:!block">
{children}
</ScrollAreaPrimitive.Viewport>
<ScrollBar />