bstp-agent-widget 0.2.51 → 0.2.53
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/agent-widget.js +3 -1
- package/dist/agent-widget.js.map +1 -1
- package/package.json +1 -1
package/dist/agent-widget.js
CHANGED
|
@@ -23759,13 +23759,15 @@ function XO({ opened: e, onClose: t, zIndex: n, withinPortal: r, withOverlay: i
|
|
|
23759
23759
|
t.style.setProperty("--agent-widget-drawer-width", "0px");
|
|
23760
23760
|
return;
|
|
23761
23761
|
}
|
|
23762
|
-
|
|
23762
|
+
let n = document.querySelector(`.${db.content}`)?.getBoundingClientRect().width, r = Math.round(n ?? j);
|
|
23763
|
+
return t.style.setProperty("--agent-widget-drawer-width", `${r}px`), () => {
|
|
23763
23764
|
t.style.setProperty("--agent-widget-drawer-width", "0px");
|
|
23764
23765
|
};
|
|
23765
23766
|
}, [e, j]), /* @__PURE__ */ T(w, { children: /* @__PURE__ */ E(ub, {
|
|
23766
23767
|
opened: e,
|
|
23767
23768
|
onClose: t,
|
|
23768
23769
|
size: j,
|
|
23770
|
+
offset: 0,
|
|
23769
23771
|
zIndex: n,
|
|
23770
23772
|
withinPortal: r,
|
|
23771
23773
|
overlayProps: i ? {
|