@trafilea/afrodita-components 6.36.4 → 6.36.5
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/build/index.esm.js +4 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -20938,13 +20938,14 @@ var ContentGallery = function (_a) {
|
|
|
20938
20938
|
}, [contents, selectedImageIndex]);
|
|
20939
20939
|
function calcSlidesToShow() {
|
|
20940
20940
|
var paddingWidth = 15 * 2;
|
|
20941
|
+
var width = windowDimensions.width;
|
|
20941
20942
|
var cssZoom = 0.8;
|
|
20942
20943
|
var cssGap = 8;
|
|
20943
20944
|
var photoSize = 375.41 * cssZoom;
|
|
20944
|
-
var photosPerScreen =
|
|
20945
|
+
var photosPerScreen = width / photoSize;
|
|
20945
20946
|
var totalGap = Math.floor(photosPerScreen) * cssGap;
|
|
20946
|
-
return (
|
|
20947
|
-
+ (
|
|
20947
|
+
return (width
|
|
20948
|
+
+ width * 0.0001 * (width > 380 ? 10 : -10)
|
|
20948
20949
|
- paddingWidth
|
|
20949
20950
|
- totalGap) / photoSize;
|
|
20950
20951
|
}
|