Skip to content

Commit

Permalink
fix: mobile slider padding, margins
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx committed Sep 27, 2024
1 parent da8ddeb commit 7ec25eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blocks/SliderNew/Slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ $dotSize: 8px;
margin: 0;

& .swiper-pagination {
bottom: (40px - 18px) / 2;
bottom: 11px;
}

#{$root}__dot {
Expand Down Expand Up @@ -324,6 +324,9 @@ $dotSize: 8px;
$horizontalPadding: $gridContainerMargin + $gridGutterMobile;

&:not(&_one-slide) {
margin-left: -($horizontalPadding);
padding-left: $horizontalPadding;
width: calc(100% + #{($horizontalPadding) * 2});
overflow-x: auto;

#{$root}__slider {
Expand Down

0 comments on commit 7ec25eb

Please sign in to comment.