Unverified Commit f6054b61 authored by 啥也不会的帆's avatar 啥也不会的帆 Committed by GitHub

fix: preview image window proportion error (#4689)

parent 87798801
...@@ -172,7 +172,7 @@ const PreviewImageDialog: React.FC<Props> = ({ destroy, imgUrls, initialIndex }: ...@@ -172,7 +172,7 @@ const PreviewImageDialog: React.FC<Props> = ({ destroy, imgUrls, initialIndex }:
onClick={handleImgContainerClick} onClick={handleImgContainerClick}
> >
<img <img
className="h-auto w-auto min-w-16 max-w-full max-h-full grow" className="object-contain max-h-full max-w-full"
style={imageComputedStyle} style={imageComputedStyle}
src={imgUrls[currentIndex]} src={imgUrls[currentIndex]}
onClick={(e) => e.stopPropagation()} onClick={(e) => e.stopPropagation()}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment