@wlloyalty/wll-react-sdk 1.6.16 → 1.6.17
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/native.js +1 -3
- package/dist/native.js.map +1 -1
- package/dist/web.js +4 -2
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -3721,9 +3721,7 @@ var ContentTileMedia = function (_a) {
|
|
|
3721
3721
|
return null;
|
|
3722
3722
|
var hasArtwork = Boolean(artworkUrl);
|
|
3723
3723
|
var styles = useContentTileStyles(hasArtwork);
|
|
3724
|
-
var containerStyle = {
|
|
3725
|
-
flexBasis: isArtworkOnly ? '100%' : '50%',
|
|
3726
|
-
};
|
|
3724
|
+
var containerStyle = __assign({ flexBasis: isArtworkOnly ? '100%' : '50%' }, (isArtworkOnly && IS_WEB && { aspectRatio: 1 }));
|
|
3727
3725
|
return (jsxRuntimeExports.jsx(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "content-tile-media", role: "img", accessibilityLabel: "Image for ".concat(title), children: jsxRuntimeExports.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Image for ".concat(title) }) }));
|
|
3728
3726
|
};
|
|
3729
3727
|
|