Pārlūkot izejas kodu

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

YyumeiZhang 1 nedēļu atpakaļ
vecāks
revīzija
674e152c26
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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} {
     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 {
       position: absolute;
       user-select: none;