diff --git a/src/components/Slider/Slider.jsx b/src/components/Slider/Slider.jsx index 8996c22..50f8879 100644 --- a/src/components/Slider/Slider.jsx +++ b/src/components/Slider/Slider.jsx @@ -39,7 +39,7 @@ function Slider({ autoPlay = false, autoPlayTime = 3000, images = false }) { modules={[Navigation, Pagination]} spaceBetween={20} slidesPerView={itemsPerSlide} // Количество картинок в видимой зоне - slidesPerGroup={itemsPerSlide} // Перелистывать сразу по 2 + slidesPerGroup={1} // Перелистывать сразу по 2 loop={true} // Зацикленный слайдер navigation // Стрелки pagination={{ clickable: true }} diff --git a/src/components/Slider/Slider.styles.scss b/src/components/Slider/Slider.styles.scss index 0a8df1b..d6a628d 100644 --- a/src/components/Slider/Slider.styles.scss +++ b/src/components/Slider/Slider.styles.scss @@ -8,16 +8,13 @@ display: flex; justify-content: center; align-items: center; - height: 60vh; - @media (max-width: 768px) { - height: 35vh; - } + height: 50vh; } .slide-image { width: 100%; height: auto; - max-height: 100%; + height: 350px; object-fit: cover; object-position: center center; border-radius: 8px; diff --git a/src/pages/Main/components/Gallery/Gallery.jsx b/src/pages/Main/components/Gallery/Gallery.jsx index 27f63d8..c969104 100644 --- a/src/pages/Main/components/Gallery/Gallery.jsx +++ b/src/pages/Main/components/Gallery/Gallery.jsx @@ -4,10 +4,10 @@ import './Gallery.styles.scss'; function Gallery() { return ( -