From 861c13b07a3c87cd88761f4efe8ae8d3d87dcbf7 Mon Sep 17 00:00:00 2001 From: Harrys Ravalomanana Date: Tue, 26 Nov 2019 17:57:02 +0400 Subject: [PATCH] PHRAS-2829 set height of image --- .../styles/jquery-mobile/_jquery-validator.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/www/lightbox/styles/jquery-mobile/_jquery-validator.scss b/resources/www/lightbox/styles/jquery-mobile/_jquery-validator.scss index 5a12f1c4b6..259ade124d 100644 --- a/resources/www/lightbox/styles/jquery-mobile/_jquery-validator.scss +++ b/resources/www/lightbox/styles/jquery-mobile/_jquery-validator.scss @@ -13,11 +13,10 @@ ul.image_set{ li.image_box a img{ position:relative; border:none; - width: 100%!important; - height: auto!important; + width: auto!important; + height: 100% !important; top: 0 !important; - object-fit: cover; - + object-fit: contain; } li.image_box a{ padding:0; @@ -40,7 +39,10 @@ li.image_box{ .thumb_wrapper { background: #ededed; width: 100%!important; - height: 100%!important; + height: 160px!important; + @media screen and (max-width: 767px) { + height: 130px !important; + } } } @media screen and (max-width: 767px) {