From 69f3906174383bbb3bff5d5ff0750adc7a410861 Mon Sep 17 00:00:00 2001 From: Sarab Singh Date: Sat, 2 May 2020 03:57:13 +0530 Subject: [PATCH 1/4] fixed aspect ratio display issue of photo --- src/components/slideshow/style.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/slideshow/style.css b/src/components/slideshow/style.css index fc747cf37..7fff359b7 100644 --- a/src/components/slideshow/style.css +++ b/src/components/slideshow/style.css @@ -41,8 +41,8 @@ } .swiper-slide-img { - width: 100%; - height: 100%; + max-height: 100%; + max-width: 100%; display: flex; justify-content: center; align-items: center; @@ -141,4 +141,6 @@ .slider-zoom-container { margin: auto; + max-height: 100%!important; + max-width: 100%!important; } From 1fbe27f6a3a46429f49a35c332a1c64786753c79 Mon Sep 17 00:00:00 2001 From: Sarab Singh Date: Sat, 2 May 2020 04:04:11 +0530 Subject: [PATCH 2/4] damn you lint --- src/components/slideshow/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/slideshow/style.css b/src/components/slideshow/style.css index 7fff359b7..5735cb2c4 100644 --- a/src/components/slideshow/style.css +++ b/src/components/slideshow/style.css @@ -141,6 +141,6 @@ .slider-zoom-container { margin: auto; - max-height: 100%!important; - max-width: 100%!important; + max-height: 100% !important; + max-width: 100% !important; } From e13a7688115e25036b476baf20af7389c8edf73a Mon Sep 17 00:00:00 2001 From: Sarab Singh Date: Sat, 2 May 2020 05:35:20 +0530 Subject: [PATCH 3/4] margin --- src/components/slideshow/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/slideshow/style.css b/src/components/slideshow/style.css index 5735cb2c4..8c4737575 100644 --- a/src/components/slideshow/style.css +++ b/src/components/slideshow/style.css @@ -47,6 +47,7 @@ justify-content: center; align-items: center; text-align: center; + margin: auto; } .slideshowButtonIcon { From bbfe685477e735045e375537112ce96037610546 Mon Sep 17 00:00:00 2001 From: Sarab Singh Date: Sat, 2 May 2020 15:16:40 +0530 Subject: [PATCH 4/4] removed important --- src/components/slideshow/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/slideshow/style.css b/src/components/slideshow/style.css index 8c4737575..f1fea508d 100644 --- a/src/components/slideshow/style.css +++ b/src/components/slideshow/style.css @@ -142,6 +142,6 @@ .slider-zoom-container { margin: auto; - max-height: 100% !important; - max-width: 100% !important; + max-height: 100%; + max-width: 100%; }