@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.js CHANGED
@@ -20964,13 +20964,14 @@ var ContentGallery = function (_a) {
20964
20964
  }, [contents, selectedImageIndex]);
20965
20965
  function calcSlidesToShow() {
20966
20966
  var paddingWidth = 15 * 2;
20967
+ var width = windowDimensions.width;
20967
20968
  var cssZoom = 0.8;
20968
20969
  var cssGap = 8;
20969
20970
  var photoSize = 375.41 * cssZoom;
20970
- var photosPerScreen = windowDimensions.width / photoSize;
20971
+ var photosPerScreen = width / photoSize;
20971
20972
  var totalGap = Math.floor(photosPerScreen) * cssGap;
20972
- return (windowDimensions.width
20973
- + (windowDimensions.width > 380 ? 0 : -10)
20973
+ return (width
20974
+ + width * 0.0001 * (width > 380 ? 10 : -10)
20974
20975
  - paddingWidth
20975
20976
  - totalGap) / photoSize;
20976
20977
  }