@micromerce/media-fileuploader 1.0.1835 → 1.0.1837

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -18048,6 +18048,7 @@ const StyledHover = styled.img `
18048
18048
  const StyledIcon = styled.img `
18049
18049
  width: 22px;
18050
18050
  height: 22px;
18051
+ object-fit: contain;
18051
18052
  background: #FFFFFF;
18052
18053
  `;
18053
18054
  const StyledImagePreviewWrapper = styled.div `
@@ -18070,7 +18071,7 @@ const ImagePreview = ({ previewUrl, type, decodedFileName }) => {
18070
18071
  if (!(type === 'image' && previewUrl && decodedFileName))
18071
18072
  return (null);
18072
18073
  const isSvg = decodedFileName.toLowerCase().endsWith('.svg');
18073
- const iconSrc = isSvg ? previewUrl : withWidth(previewUrl, 22);
18074
+ const iconSrc = isSvg ? previewUrl : withWidth(previewUrl, 150);
18074
18075
  const hoverSrc = isSvg ? previewUrl : withWidth(previewUrl, 450);
18075
18076
  return (jsxRuntimeExports.jsxs(StyledImagePreviewWrapper, { "data-testid": 'fileuploader__preview-image', children: [jsxRuntimeExports.jsx(StyledIcon, { "data-testid": 'fileuploader__preview-image__icon', className: 'lazyload', src: iconSrc, "data-sizes": 'auto' }), jsxRuntimeExports.jsx(StyledHover, { className: 'lazyload', src: hoverSrc, "data-sizes": 'auto' })] }));
18076
18077
  };