touchstudy-core 0.1.23 → 0.1.24

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
@@ -2845,12 +2845,9 @@ var ChatRightItem = function ChatRightItem(_ref) {
2845
2845
  onClick: toggleImageDialog,
2846
2846
  src: content,
2847
2847
  style: {
2848
- backgroundRepeat: "no-repeat",
2849
- width: "200px",
2850
2848
  height: "200px",
2851
2849
  position: "relative",
2852
- backgroundSize: "cover",
2853
- objectFit: "cover"
2850
+ objectFit: "contain"
2854
2851
  }
2855
2852
  }) : React__default.createElement("div", {
2856
2853
  className: styles["wrap-content"] + " " + styles["content-chat-receiver"],
@@ -2918,12 +2915,9 @@ var ChatLeftItem = function ChatLeftItem(_ref) {
2918
2915
  onClick: toggleImageDialog,
2919
2916
  src: content,
2920
2917
  style: {
2921
- backgroundRepeat: "no-repeat",
2922
- width: "200px",
2923
2918
  height: "200px",
2924
2919
  position: "relative",
2925
- backgroundSize: "cover",
2926
- objectFit: "cover"
2920
+ objectFit: "contain"
2927
2921
  }
2928
2922
  }) : React__default.createElement("div", {
2929
2923
  className: styles["wrap-content"] + " " + styles["content-chat-sender"]
@@ -2959,9 +2953,9 @@ var ImageDetailDialog = function ImageDetailDialog(_ref) {
2959
2953
  src: content,
2960
2954
  style: {
2961
2955
  width: "500px",
2962
- height: "500px",
2963
2956
  position: "relative",
2964
- objectFit: "cover"
2957
+ objectFit: "contain",
2958
+ objectPosition: "center"
2965
2959
  }
2966
2960
  })), React__default.createElement(material.Button, {
2967
2961
  sx: {
@@ -3250,10 +3244,9 @@ var InputChat = function InputChat(_ref) {
3250
3244
  }, React__default.createElement("img", {
3251
3245
  src: selectedFile === null || selectedFile === void 0 ? void 0 : selectedFile.content,
3252
3246
  style: {
3253
- backgroundRepeat: "no-repeat",
3254
- width: "100px",
3255
3247
  height: "100px",
3256
- backgroundSize: "cover"
3248
+ objectFit: "contain",
3249
+ objectPosition: "center"
3257
3250
  }
3258
3251
  }), React__default.createElement("div", {
3259
3252
  style: {