Skip to content

Commit

Permalink
fix: Set the max-width of the img node of the image preview to none t…
Browse files Browse the repository at this point in the history
…o avoid the influence of tailwind
  • Loading branch information
YyumeiZhang committed Dec 11, 2024
1 parent 583ea2a commit d44ff6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/semi-foundation/image/image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ $module: #{$prefix}-image;
// transition: transform $transition_duration-image_preview_image_img $transition_delay-image_preview_image_img;
z-index: 0;
user-select: none;
/**
* In tailwind, the max-width of img/video is set to 100%,
* which will affect the amplification effect of the picture.
* So we need to set max-width to none.
*/
max-width: none;
}

&-spin {
Expand Down

0 comments on commit d44ff6e

Please sign in to comment.