浏览代码

style: [Cropper] To prevent the max-Width setting of img in tailwindCSS from affecting the styles of img in Cropper (#3011)

YyumeiZhang 1 周之前
父节点
当前提交
674e152c26
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      packages/semi-foundation/cropper/cropper.scss

+ 5 - 0
packages/semi-foundation/cropper/cropper.scss

@@ -6,6 +6,11 @@ $half_corner_width: calc($width-cropper_box_corner / 2);
 .#{$module} {
 .#{$module} {
     position: relative;
     position: relative;
 
 
+    & img {
+      // To avoid the `max-Width` setting of `img` to 100% in `tailwindCSS` affecting the style of img in Cropper.
+      max-width: none;
+    }
+
     &-img {
     &-img {
       position: absolute;
       position: absolute;
       user-select: none;
       user-select: none;