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