From 9c05bdebd6ceadea4279bfa7fcfbd50f20b8d9c7 Mon Sep 17 00:00:00 2001 From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:05:01 +0300 Subject: [PATCH] Fix image width in swiper (#300) --- src/components/_shared/DropArea/DropArea.tsx | 2 +- src/components/_shared/SolidSwiper/Swiper.module.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/_shared/DropArea/DropArea.tsx b/src/components/_shared/DropArea/DropArea.tsx index 8b0ca6e6..cf80c464 100644 --- a/src/components/_shared/DropArea/DropArea.tsx +++ b/src/components/_shared/DropArea/DropArea.tsx @@ -95,7 +95,7 @@ export const DropArea = (props: Props) => { ref={dropzoneRef} onClick={handleDropFieldClick} > -
{loading() ? 'Loading...' : props.placeholder}
+
{loading() ? t('Loading') : props.placeholder}
{props.description}
diff --git a/src/components/_shared/SolidSwiper/Swiper.module.scss b/src/components/_shared/SolidSwiper/Swiper.module.scss index 14bae50b..f47a2429 100644 --- a/src/components/_shared/SolidSwiper/Swiper.module.scss +++ b/src/components/_shared/SolidSwiper/Swiper.module.scss @@ -155,6 +155,7 @@ $navigation-reserve: 32px; img { max-height: 100%; + width: auto; } }