File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ $block: '.#{$ns}SliderNewBlock';
14
14
}
15
15
}
16
16
17
+ $dotsCn : ' .swiper-container-horizontal .swiper-pagination-bullets' ;
18
+
17
19
$dotSize : 8px ;
18
20
19
21
#{$block } {
@@ -33,10 +35,24 @@ $dotSize: 8px;
33
35
}
34
36
}
35
37
36
- & __slide {
38
+ & __slide .swiper-slide {
37
39
padding : 0 #{$gridGutter } ;
38
40
box-sizing : border-box ;
39
- flex-shrink : 0 ;
41
+ height : auto ;
42
+
43
+ @keyframes safari-fix {
44
+ from {
45
+ transform : translateX (0.001px );
46
+ }
47
+ to {
48
+ transform : translateX (0 );
49
+ }
50
+ }
51
+
52
+ // fix text under video in safari
53
+ & .swiper-slide-visible {
54
+ animation : safari- fix 300ms ;
55
+ }
40
56
}
41
57
42
58
& __arrow {
@@ -121,7 +137,7 @@ $dotSize: 8px;
121
137
122
138
padding : 0 ;
123
139
124
- #{$root } __ dots {
140
+ & #{$dotsCn } {
125
141
bottom : $indentSM ;
126
142
}
127
143
@@ -167,7 +183,7 @@ $dotSize: 8px;
167
183
position : relative ;
168
184
}
169
185
170
- #{$root } __ dots {
186
+ & #{$dotsCn } {
171
187
bottom : $indentM ;
172
188
}
173
189
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ export const useSlider = ({
78
78
setIsLocked,
79
79
autoplay : autoplayEnabled && {
80
80
delay : autoplayMs ,
81
+ disableOnInteraction : false ,
81
82
} ,
82
83
} ;
83
84
} ;
You can’t perform that action at this time.
0 commit comments