diff --git a/src/files-ui/components/previews/ImagePreview/ImagePreview.tsx b/src/files-ui/components/previews/ImagePreview/ImagePreview.tsx index cdf344a886937a02e3ab7e5f38a697b127e54bd7..3f0c0e489a05c429d701ba71972db939eca72a03 100644 --- a/src/files-ui/components/previews/ImagePreview/ImagePreview.tsx +++ b/src/files-ui/components/previews/ImagePreview/ImagePreview.tsx @@ -82,7 +82,7 @@ const ImagePreview: React.FC<ImagePreviewProps> = ( onClick={(evt) => { evt.preventDefault(); }} - width={finalWidth} + width={!smart && !finalWidth?"100%":finalWidth} height={finalHeight} src={source} alt={alt}