Skip to content

Commit

Permalink
Prevent layout shift when using swiper
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Nov 7, 2023
1 parent 27495e9 commit 50793e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Block/Widgets/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public function getSwiperConfig()
"slidesToScroll" => 1,
"freeMode" => false,
"loop" => true,
"spaceBetween" => 10,
'navigation' => [
'nextEl' => '.swiper-button-next',
'prevEl' => '.swiper-button-prev'
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/css/testimonials.less
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@

figure.testimonial {
box-sizing: border-box;
margin: 0;
margin: 0 10px 0 0;
padding: 40px 20px 0;
height: 100%;

Expand Down

0 comments on commit 50793e2

Please sign in to comment.