diy-template-components 2.0.95 → 2.0.96
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/build/index.es.js +12 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +12 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1606,12 +1606,18 @@ function MobileHeader({
|
|
|
1606
1606
|
const navEl = useRef(null);
|
|
1607
1607
|
useLayoutEffect(() => {
|
|
1608
1608
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1609
|
-
if (
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
body?.
|
|
1609
|
+
if (body) {
|
|
1610
|
+
if (sideMenu) {
|
|
1611
|
+
// body?.setAttribute('style', 'overflow: hidden;');
|
|
1612
|
+
body.style.overflow = 'hidden';
|
|
1613
|
+
} else {
|
|
1614
|
+
// body?.removeAttribute('style');
|
|
1615
|
+
body.style.overflow = '';
|
|
1616
|
+
}
|
|
1617
|
+
if (header?.effectivePrice) {
|
|
1618
|
+
body.style.marginBottom = '130px';
|
|
1619
|
+
} else {
|
|
1620
|
+
body.style.marginBottom = '';
|
|
1615
1621
|
}
|
|
1616
1622
|
}
|
|
1617
1623
|
}, [sideMenu]);
|