@goodhood-web/ui 4.6.0 → 4.6.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/index.js +1 -1
- package/index.mjs +5 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -20779,12 +20779,12 @@ const IA = /* @__PURE__ */ z1(zA), NA = "_withKeyboard_4cqyw_147", BA = "_footer
|
|
|
20779
20779
|
if (!t || !window.visualViewport) return;
|
|
20780
20780
|
let a = null, o = null, s = window.visualViewport.height;
|
|
20781
20781
|
const l = () => {
|
|
20782
|
-
var
|
|
20782
|
+
var C, v;
|
|
20783
20783
|
const f = e.current;
|
|
20784
20784
|
if (!f) return;
|
|
20785
|
-
const h = ((
|
|
20786
|
-
if (
|
|
20787
|
-
if (s =
|
|
20785
|
+
const h = ((C = window.visualViewport) == null ? void 0 : C.height) || 0, p = ((v = window.visualViewport) == null ? void 0 : v.offsetTop) || 0, g = window.innerHeight - (h + p);
|
|
20786
|
+
if (g !== s) {
|
|
20787
|
+
if (s = g, o && (clearTimeout(o), o = null), !r) {
|
|
20788
20788
|
f.classList.remove(lt.footerVisible), f.classList.add(lt.footerHidden), o = setTimeout(() => {
|
|
20789
20789
|
document.documentElement.style.removeProperty("--footer-bottom-keyboard"), o = null;
|
|
20790
20790
|
}, 300);
|
|
@@ -20793,7 +20793,7 @@ const IA = /* @__PURE__ */ z1(zA), NA = "_withKeyboard_4cqyw_147", BA = "_footer
|
|
|
20793
20793
|
f.classList.add(lt.footerHidden), f.classList.remove(lt.footerVisible), f.offsetHeight, o = setTimeout(() => {
|
|
20794
20794
|
document.documentElement.style.setProperty(
|
|
20795
20795
|
"--footer-bottom-keyboard",
|
|
20796
|
-
`${
|
|
20796
|
+
`${g}px`
|
|
20797
20797
|
), f.classList.remove(lt.footerHidden), f.classList.add(lt.footerVisible), o = null;
|
|
20798
20798
|
}, 300);
|
|
20799
20799
|
}
|