Skip to content

Commit 623cbf4

Browse files
authored
Merge pull request #2757 from daostack/CW-images-gallery-fix
CW-images-gallery-fix
2 parents 6b3cf10 + b8ba32f commit 623cbf4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/shared/ui-kit/ImageGallery/components/ImageGalleryModal/ImageGalleryModal.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
.image-gallery-modal {
123123
.modal__content {
124124
padding: 0;
125+
padding-bottom: 2rem;
125126
.modal__header-wrapper {
126127
.modal__header--default-padding {
127128
margin-right: 0.5rem;

src/shared/ui-kit/ImageGallery/components/ImageGalleryModal/ImageGalleryModal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import RightArrowIcon from "@/shared/icons/rightArrow.icon";
88
import { VideoEmbed } from "@/shared/ui-kit/VideoEmbed";
99
import "./ImageGalleryModal.scss";
1010
import "swiper/components/pagination/pagination.min.css";
11+
import 'swiper/swiper-bundle.min.css';
12+
1113

1214
interface ImageGalleryProps {
1315
images: string[];
@@ -58,6 +60,9 @@ const ImageGalleryModal: FC<ImageGalleryProps> = (props) => {
5860
pagination
5961
initialSlide={initialSlide}
6062
allowTouchMove={isTabletView}
63+
direction="horizontal"
64+
centeredSlides
65+
slidesPerView={1}
6166
>
6267
{videoSrc && (
6368
<SwiperSlide key={videoSrc} className="slider-wrapper">

0 commit comments

Comments
 (0)