@wlloyalty/wll-react-sdk 1.0.77 → 1.0.79
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 +7 -2
- package/dist/native.js.map +1 -1
- package/dist/web.js +14 -7
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -20566,9 +20566,11 @@ var Grid = function (_a) {
|
|
|
20566
20566
|
aspectRatio: 1
|
|
20567
20567
|
};
|
|
20568
20568
|
} else {
|
|
20569
|
+
// For mobile, we need to be very precise with our calculations
|
|
20569
20570
|
var horizontalPadding = GRID_GAP;
|
|
20570
20571
|
var availableWidth = SCREEN_WIDTH - horizontalPadding * 2;
|
|
20571
|
-
var
|
|
20572
|
+
var gapSpace = (columns - 1) * GRID_GAP;
|
|
20573
|
+
var tileWidth = Math.floor((availableWidth - gapSpace) / columns);
|
|
20572
20574
|
return {
|
|
20573
20575
|
width: tileWidth,
|
|
20574
20576
|
marginBottom: GRID_GAP,
|
|
@@ -20604,7 +20606,10 @@ var Grid = function (_a) {
|
|
|
20604
20606
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
20605
20607
|
getTileWidth(columnsPerRow), !isLastInRow && {
|
|
20606
20608
|
marginRight: GRID_GAP
|
|
20607
|
-
}
|
|
20609
|
+
}, {
|
|
20610
|
+
overflow: 'hidden'
|
|
20611
|
+
} // Prevent content from overflowing
|
|
20612
|
+
]
|
|
20608
20613
|
}, /*#__PURE__*/React.createElement(TileContainer, {
|
|
20609
20614
|
tiles: currentTiles
|
|
20610
20615
|
})));
|
|
@@ -20624,7 +20629,8 @@ var styles$2 = StyleSheet$1.create({
|
|
|
20624
20629
|
grid: {
|
|
20625
20630
|
flexDirection: 'row',
|
|
20626
20631
|
flexWrap: 'wrap',
|
|
20627
|
-
width: '100%'
|
|
20632
|
+
width: '100%',
|
|
20633
|
+
justifyContent: 'space-between' // Ensure tiles are evenly spaced
|
|
20628
20634
|
}
|
|
20629
20635
|
});
|
|
20630
20636
|
|
|
@@ -21986,15 +21992,16 @@ var styles = StyleSheet$1.create({
|
|
|
21986
21992
|
container: {
|
|
21987
21993
|
flexDirection: 'column',
|
|
21988
21994
|
flex: 1,
|
|
21989
|
-
aspectRatio: 1
|
|
21995
|
+
aspectRatio: 1,
|
|
21996
|
+
width: '100%' // Ensure the container takes full width
|
|
21990
21997
|
},
|
|
21991
21998
|
tileContainer: {
|
|
21992
21999
|
flex: 1,
|
|
21993
|
-
aspectRatio: 1
|
|
22000
|
+
aspectRatio: 1,
|
|
22001
|
+
width: '100%' // Ensure each tile takes full width of its container
|
|
21994
22002
|
},
|
|
21995
22003
|
halfTileContainer: {
|
|
21996
|
-
flex: 0.5
|
|
21997
|
-
aspectRatio: 1
|
|
22004
|
+
flex: 0.5
|
|
21998
22005
|
}
|
|
21999
22006
|
});
|
|
22000
22007
|
|