@gamelearn/arcade-components 3.24.1 → 3.25.0

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.
@@ -30325,7 +30325,7 @@ Message.defaultProps = {
30325
30325
  current: {},
30326
30326
  voiceOver: !1
30327
30327
  };
30328
- const cleanStyle = { width: "100vw", height: "100%", position: "static" };
30328
+ const cleanStyle = { width: "100%", height: "100%", position: "static" };
30329
30329
  function HtmlWrap(l) {
30330
30330
  const e = document.querySelector(".screens--container");
30331
30331
  return useEffect(() => (l.onMount && l.onMount(), () => {
@@ -54204,7 +54204,8 @@ const useWindowSize = () => {
54204
54204
  const [l, e] = useState([0, 0]);
54205
54205
  return useLayoutEffect(() => {
54206
54206
  function n() {
54207
- e([window.innerWidth, window.innerHeight]);
54207
+ const t = document.querySelector("#root");
54208
+ e([t.clientWidth, t.clientHeight]);
54208
54209
  }
54209
54210
  return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
54210
54211
  }, []), l;
@@ -60789,7 +60790,7 @@ function BubbleWrapper({ currentMessage: l, translate: e }) {
60789
60790
  onOcclude: () => null,
60790
60791
  zIndexRange: [5, 5],
60791
60792
  portal: n ? { current: n } : void 0,
60792
- style: { width: "100vw", height: "100%", position: "static" },
60793
+ style: { width: "100%", height: "100%", position: "static" },
60793
60794
  calculatePosition: () => [0, 0],
60794
60795
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(SpeechBubbleComponent$1, { translate: e, message: l })
60795
60796
  }
@@ -61291,7 +61292,7 @@ function DialogComponent({
61291
61292
  HtmlPro,
61292
61293
  {
61293
61294
  wrapperClass: "htmlpro-wrap-100-h",
61294
- style: { width: "100vw", height: "100%", position: "static" },
61295
+ style: { width: "100%", height: "100%", position: "static" },
61295
61296
  portal: st ? { current: st } : void 0,
61296
61297
  zIndexRange: [6, 6],
61297
61298
  onOcclude: () => {