From ec2f5022f4a1ffb20bc7a90461b987cb67aa1ac6 Mon Sep 17 00:00:00 2001 From: PahaN47 Date: Thu, 10 Oct 2024 13:17:34 +0300 Subject: [PATCH 1/2] fix(Slider): fix items height --- src/blocks/Slider/Slider.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blocks/Slider/Slider.scss b/src/blocks/Slider/Slider.scss index 2ef57c2e1..d433b6a85 100644 --- a/src/blocks/Slider/Slider.scss +++ b/src/blocks/Slider/Slider.scss @@ -55,6 +55,8 @@ $block: '.#{$ns}SliderBlock'; .slick-slide > div { display: flex; + width: 100%; + height: 100%; } } From 0b4b2f3368727719153f671834dc0aa62d6e9f05 Mon Sep 17 00:00:00 2001 From: qradle Date: Tue, 15 Oct 2024 15:04:05 +0300 Subject: [PATCH 2/2] fix: new slider items height --- src/blocks/SliderNew/Slider.scss | 5 +++++ src/blocks/SliderNew/Slider.tsx | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/blocks/SliderNew/Slider.scss b/src/blocks/SliderNew/Slider.scss index a1ab99959..2b2970465 100644 --- a/src/blocks/SliderNew/Slider.scss +++ b/src/blocks/SliderNew/Slider.scss @@ -55,6 +55,11 @@ $dotSize: 8px; } } + #{$root}__slide-item { + width: 100%; + height: 100%; + } + &__arrow { position: absolute; top: -2px; diff --git a/src/blocks/SliderNew/Slider.tsx b/src/blocks/SliderNew/Slider.tsx index 137120523..fd5798bed 100644 --- a/src/blocks/SliderNew/Slider.tsx +++ b/src/blocks/SliderNew/Slider.tsx @@ -131,7 +131,12 @@ export const SliderNewBlock = ({ {React.Children.map(children, (elem, index) => ( {({isVisible}) => ( -
{elem}
+
+ {elem} +
)}
))}