oddsgate-ds 1.0.116 → 1.0.117

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.116",
3
+ "version": "1.0.117",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -26,15 +26,6 @@ const ProductsSlider = ({
26
26
  const contentHolder = useRef<HTMLDivElement>();
27
27
  const isMobile = useMediaMatch();
28
28
 
29
- //force 12 items
30
- if (content && content.length < 26) {
31
- let counter = 0;
32
- for (let i = content.length; i <= 26; i++) {
33
- content[i] = content[counter];
34
- counter++;
35
- }
36
- }
37
-
38
29
  useEffect(() => {
39
30
  if (!slidesHolder.current) return //bail out;
40
31
 
@@ -62,11 +53,11 @@ const ProductsSlider = ({
62
53
  const setSize = (radius: number) => {
63
54
  if (!wrapper.current || !slidesHolder.current || isMobile) return //bail out;
64
55
 
65
- const slideSize = 0.08;
56
+ const slideSize = 0.11;
66
57
 
67
58
  wrapper.current.style.width = 2 * radius + 'px';
68
59
  // wrapper.current.style.height = 2 * radius + 'px';
69
- wrapper.current.style.height = '530px';
60
+ wrapper.current.style.height = '680px';
70
61
 
71
62
  let r = 2 * radius * (1 - slideSize);
72
63
  slidesHolder.current.style.width = r + 'px'
@@ -21,11 +21,12 @@ export const StyledProductsSliderWrapper = styled.div<IProductsSlider>`
21
21
  export const StyledProductsSliderSlides = styled.div<IProductsSlider>`
22
22
  position: relative;
23
23
  display: flex;
24
- justify-content: center;
25
- align-items: center;
26
24
  flex-flow: row wrap;
27
25
 
28
26
  @media only screen and (min-width: ${responsiveMedia}) {
27
+ justify-content: center;
28
+ align-items: center;
29
+
29
30
  transform-origin: center;
30
31
  transition: all 0.6s;
31
32
  transform: rotate(0deg);