@oscloudlab/vgen-agent-assistant 0.0.19 → 0.0.20

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.
Binary file
Binary file
@@ -15401,6 +15401,13 @@ const ThinkingContent = memo((props) => {
15401
15401
  }
15402
15402
  return content2;
15403
15403
  }, [recommendScene]);
15404
+ const thinkContentRef = useRef(null);
15405
+ useEffect(() => {
15406
+ const el = thinkContentRef.current;
15407
+ if (el) {
15408
+ el.scrollTop = el.scrollHeight;
15409
+ }
15410
+ }, [thinkContent]);
15404
15411
  const preheatContentMap = useMemo(() => {
15405
15412
  let content2 = "";
15406
15413
  switch (recommendScene) {
@@ -15455,7 +15462,14 @@ const ThinkingContent = memo((props) => {
15455
15462
  ) }),
15456
15463
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
15457
15464
  /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: "text-base font-black italic text-slate-900 tracking-tight", children: createingMap }),
15458
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs font-bold text-primary animate-pulse", children: thinkContent })
15465
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
15466
+ "p",
15467
+ {
15468
+ ref: thinkContentRef,
15469
+ className: "text-xs font-bold text-primary animate-pulse max-h-[50px] overflow-y-auto max-w-[40vw]",
15470
+ children: thinkContent
15471
+ }
15472
+ )
15459
15473
  ] })
15460
15474
  ] }),
15461
15475
  preheatContentMap ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-[#FAFBFC] rounded-3xl p-6 border border-border/40 relative group overflow-hidden", children: [
Binary file
Binary file