@shoplflow/base 0.24.35 → 0.24.36
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/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -843,7 +843,18 @@ var ModalBody = ({
|
|
|
843
843
|
const heightOverMaxHeight = 1200 - topBottomMargin - headerFooterHeight;
|
|
844
844
|
return windowHeight > 1200 ? heightOverMaxHeight : heightUnderMaxHeight;
|
|
845
845
|
}
|
|
846
|
-
return
|
|
846
|
+
return 0;
|
|
847
|
+
};
|
|
848
|
+
const setContentHeightMax = () => {
|
|
849
|
+
let autoHeightMax = setAutoHeightMax();
|
|
850
|
+
autoHeightMax = autoHeightMax - 24;
|
|
851
|
+
if (isIncludeHeader) {
|
|
852
|
+
autoHeightMax = autoHeightMax - 24;
|
|
853
|
+
}
|
|
854
|
+
if (!isIncludeHeader) {
|
|
855
|
+
autoHeightMax = autoHeightMax - 16;
|
|
856
|
+
}
|
|
857
|
+
return autoHeightMax;
|
|
847
858
|
};
|
|
848
859
|
return /* @__PURE__ */ jsxRuntime.jsx(BodyContainer, { isIncludeHeader, minHeight: setAutoHeightMin(), maxHeight: setAutoHeightMax(), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
849
860
|
exports.ScrollArea,
|
|
@@ -852,7 +863,7 @@ var ModalBody = ({
|
|
|
852
863
|
universal: true,
|
|
853
864
|
autoHeight: !modalContainerHeight,
|
|
854
865
|
autoHeightMin: setAutoHeightMin(),
|
|
855
|
-
autoHeightMax:
|
|
866
|
+
autoHeightMax: setContentHeightMax(),
|
|
856
867
|
style: {
|
|
857
868
|
height: "100%",
|
|
858
869
|
overflow: "hidden"
|