@llmnative/react 1.36.0 → 1.36.1

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.mjs CHANGED
@@ -4323,7 +4323,7 @@ var Bi = "rounded-lg border border-border bg-card text-card-foreground shadow-sm
4323
4323
  ]), d.useEffect(() => {
4324
4324
  if (!j || l || !O.current) return;
4325
4325
  let e = O.current.getBoundingClientRect(), t = window.innerHeight - e.bottom - 8, n = e.top - 8, r;
4326
- if (f === "auto" ? (r = t < (k.current ? k.current.scrollHeight : 240) + 8 ? "top" : "bottom", N(r)) : r = f === "top" ? "top" : "bottom", F(Math.max(160, r === "top" ? n : t)), p === "absolute") return;
4326
+ if (f === "auto" ? (r = t < (k.current ? k.current.scrollHeight : 240) + 8 && n > t ? "top" : "bottom", N(r)) : r = f === "top" ? "top" : "bottom", F(Math.max(160, r === "top" ? n : t)), p === "absolute") return;
4327
4327
  let i = u === "end";
4328
4328
  L(r === "top" ? {
4329
4329
  bottom: window.innerHeight - e.top + 4,