@invana/ui 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2702,14 +2702,21 @@ function ChatSession({
|
|
|
2702
2702
|
}, [autoScrollKey, scrollToBottom]);
|
|
2703
2703
|
const isEmpty = React23__namespace.Children.count(children) === 0;
|
|
2704
2704
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col h-full min-h-0", className), children: [
|
|
2705
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2706
|
-
|
|
2705
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2706
|
+
ScrollArea,
|
|
2707
2707
|
{
|
|
2708
|
-
ref:
|
|
2709
|
-
className:
|
|
2710
|
-
children
|
|
2708
|
+
ref: rootRef,
|
|
2709
|
+
className: "flex-1 min-h-0 [&_[data-radix-scroll-area-viewport]>div]:!block",
|
|
2710
|
+
children: isEmpty && emptyState ? emptyState : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2711
|
+
"div",
|
|
2712
|
+
{
|
|
2713
|
+
ref: contentRef,
|
|
2714
|
+
className: cn("flex flex-col gap-4 p-3", bodyClassName),
|
|
2715
|
+
children
|
|
2716
|
+
}
|
|
2717
|
+
)
|
|
2711
2718
|
}
|
|
2712
|
-
)
|
|
2719
|
+
),
|
|
2713
2720
|
footer
|
|
2714
2721
|
] });
|
|
2715
2722
|
}
|