@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/cjs/index.js CHANGED
@@ -18050,6 +18050,7 @@ const StyledHover = styled.img `
18050
18050
  const StyledIcon = styled.img `
18051
18051
  width: 22px;
18052
18052
  height: 22px;
18053
+ object-fit: contain;
18053
18054
  background: #FFFFFF;
18054
18055
  `;
18055
18056
  const StyledImagePreviewWrapper = styled.div `
@@ -18072,7 +18073,7 @@ const ImagePreview = ({ previewUrl, type, decodedFileName }) => {
18072
18073
  if (!(type === 'image' && previewUrl && decodedFileName))
18073
18074
  return (null);
18074
18075
  const isSvg = decodedFileName.toLowerCase().endsWith('.svg');
18075
- const iconSrc = isSvg ? previewUrl : withWidth(previewUrl, 22);
18076
+ const iconSrc = isSvg ? previewUrl : withWidth(previewUrl, 150);
18076
18077
  const hoverSrc = isSvg ? previewUrl : withWidth(previewUrl, 450);
18077
18078
  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' })] }));
18078
18079
  };