@shoplflow/base 0.24.34 → 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.js CHANGED
@@ -538,7 +538,7 @@ var StyledText = styled5.span`
538
538
  `};
539
539
  ${({ opacity }) => opacity && css`
540
540
  opacity: ${opacity};
541
- `}
541
+ `};
542
542
  ${({ wordBreak }) => wordBreak && css`
543
543
  word-break: ${wordBreak};
544
544
  `};
@@ -818,7 +818,18 @@ var ModalBody = ({
818
818
  const heightOverMaxHeight = 1200 - topBottomMargin - headerFooterHeight;
819
819
  return windowHeight > 1200 ? heightOverMaxHeight : heightUnderMaxHeight;
820
820
  }
821
- return "100%";
821
+ return 0;
822
+ };
823
+ const setContentHeightMax = () => {
824
+ let autoHeightMax = setAutoHeightMax();
825
+ autoHeightMax = autoHeightMax - 24;
826
+ if (isIncludeHeader) {
827
+ autoHeightMax = autoHeightMax - 24;
828
+ }
829
+ if (!isIncludeHeader) {
830
+ autoHeightMax = autoHeightMax - 16;
831
+ }
832
+ return autoHeightMax;
822
833
  };
823
834
  return /* @__PURE__ */ jsx(BodyContainer, { isIncludeHeader, minHeight: setAutoHeightMin(), maxHeight: setAutoHeightMax(), children: /* @__PURE__ */ jsx(
824
835
  ScrollArea_default,
@@ -827,7 +838,7 @@ var ModalBody = ({
827
838
  universal: true,
828
839
  autoHeight: !modalContainerHeight,
829
840
  autoHeightMin: setAutoHeightMin(),
830
- autoHeightMax: setAutoHeightMax(),
841
+ autoHeightMax: setContentHeightMax(),
831
842
  style: {
832
843
  height: "100%",
833
844
  overflow: "hidden"