@plasmicapp/react-web 0.2.97 → 0.2.100

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.
@@ -906,15 +906,15 @@ var PlasmicImg = /*#__PURE__*/React__default.forwardRef(function PlasmicImg(prop
906
906
 
907
907
  var wrapperStyle = _extends({}, style || {});
908
908
 
909
- var spacerStyle = pick(style || {}, "objectFit", "objectPosition");
909
+ var spacerStyle = _extends({}, pick(style || {}, "objectFit", "objectPosition"));
910
910
 
911
911
  if (displayWidth != null && displayWidth !== "auto") {
912
912
  // If width is set, set it on the wrapper along with min/max width
913
913
  // and just use `width: 100%` on the spacer
914
- spacerStyle.width = "100%";
915
- wrapperStyle.width = displayWidth;
916
- wrapperStyle.minWidth = displayMinWidth;
917
- wrapperStyle.maxWidth = displayMaxWidth;
914
+ spacerStyle.width = "100%"; // Rely on the styles set by `classname` on the wrapper:
915
+ // wrapperStyle.width = displayWidth;
916
+ // wrapperStyle.minWidth = displayMinWidth;
917
+ // wrapperStyle.maxWidth = displayMaxWidth;
918
918
  } else {
919
919
  // Otherwise, we want auto sizing from the spacer, so set width there.
920
920
  //
@@ -927,33 +927,30 @@ var PlasmicImg = /*#__PURE__*/React__default.forwardRef(function PlasmicImg(prop
927
927
  wrapperStyle.width = "auto";
928
928
 
929
929
  if (displayMinWidth) {
930
- spacerStyle.minWidth = "100%";
931
- wrapperStyle.minWidth = displayMinWidth;
930
+ spacerStyle.minWidth = "100%"; // Rely on min-width set by `classname` on the wrapper:
931
+ // wrapperStyle.minWidth = displayMinWidth;
932
932
  }
933
933
 
934
934
  if (displayMaxWidth != null && displayMaxWidth !== "none") {
935
- spacerStyle.maxWidth = "100%";
936
- wrapperStyle.maxWidth = displayMaxWidth;
935
+ spacerStyle.maxWidth = "100%"; // Rely on max-width set by `classname` on the wrapper:
936
+ // wrapperStyle.maxWidth = displayMaxWidth;
937
937
  }
938
938
  }
939
939
 
940
940
  if (displayHeight != null && displayHeight !== "auto") {
941
- spacerStyle.height = "100%";
942
- wrapperStyle.height = displayHeight;
943
- wrapperStyle.minHeight = displayMinHeight;
944
- wrapperStyle.maxHeight = displayMaxHeight;
941
+ spacerStyle.height = "100%"; // wrapperStyle.height = displayHeight;
942
+ // wrapperStyle.minHeight = displayMinHeight;
943
+ // wrapperStyle.maxHeight = displayMaxHeight;
945
944
  } else {
946
945
  spacerStyle.height = displayHeight;
947
946
  wrapperStyle.height = "auto";
948
947
 
949
948
  if (displayMinHeight) {
950
- spacerStyle.minHeight = "100%";
951
- wrapperStyle.minHeight = displayMinHeight;
949
+ spacerStyle.minHeight = "100%"; // wrapperStyle.minHeight = displayMinHeight;
952
950
  }
953
951
 
954
952
  if (displayMaxHeight != null && displayMaxHeight !== "none") {
955
- spacerStyle.maxHeight = "100%";
956
- wrapperStyle.maxHeight = displayMaxHeight;
953
+ spacerStyle.maxHeight = "100%"; // wrapperStyle.maxHeight = displayMaxHeight;
957
954
  }
958
955
  }
959
956