bstp-agent-widget 0.2.55 → 0.2.56

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.
@@ -23772,8 +23772,8 @@ function XO({ opened: e, onClose: t, zIndex: n, withinPortal: r, withOverlay: i
23772
23772
  t.style.setProperty("--agent-widget-drawer-width", `${Math.max(0, Math.floor(j))}px`);
23773
23773
  return;
23774
23774
  }
23775
- let r = e.getBoundingClientRect(), i = Math.max(0, Math.ceil(window.innerWidth - r.left));
23776
- t.style.setProperty("--agent-widget-drawer-width", `${i}px`);
23775
+ let r = e.getBoundingClientRect(), i = document.documentElement.clientWidth, a = Math.max(0, Math.ceil(i - r.left));
23776
+ t.style.setProperty("--agent-widget-drawer-width", `${a}px`);
23777
23777
  };
23778
23778
  r();
23779
23779
  let i = n(), a = typeof ResizeObserver < "u" ? new ResizeObserver(() => {