@wlloyalty/wll-react-sdk 1.0.91 → 1.0.93
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
CHANGED
|
@@ -3754,6 +3754,7 @@ var Grid = function (_a) {
|
|
|
3754
3754
|
width: "calc(".concat(100 / columns, "% - ").concat(((columns - 1) * GRID_GAP) / columns, "px)"),
|
|
3755
3755
|
marginBottom: GRID_GAP,
|
|
3756
3756
|
height: 'auto',
|
|
3757
|
+
aspectRatio: 1,
|
|
3757
3758
|
};
|
|
3758
3759
|
}
|
|
3759
3760
|
else {
|
|
@@ -3795,9 +3796,11 @@ var Grid = function (_a) {
|
|
|
3795
3796
|
return true;
|
|
3796
3797
|
};
|
|
3797
3798
|
if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
|
|
3799
|
+
var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
|
|
3798
3800
|
tileContainers.push(jsxRuntimeExports.jsx(reactNative.View, { style: [
|
|
3799
3801
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
3800
3802
|
getTileWidth(columnsPerRow),
|
|
3803
|
+
!isLastInRow && { marginRight: GRID_GAP },
|
|
3801
3804
|
], children: jsxRuntimeExports.jsx(TileContainer, { tiles: currentTiles }) }, "container-".concat(index)));
|
|
3802
3805
|
currentTiles = [];
|
|
3803
3806
|
}
|
|
@@ -3811,7 +3814,6 @@ var styles$2 = reactNative.StyleSheet.create({
|
|
|
3811
3814
|
flexDirection: 'row',
|
|
3812
3815
|
flexWrap: 'wrap',
|
|
3813
3816
|
width: '100%',
|
|
3814
|
-
justifyContent: 'space-between',
|
|
3815
3817
|
},
|
|
3816
3818
|
});
|
|
3817
3819
|
|