From 00eb6506a4a7f794ad961651b01a5ad4b43e09c2 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 1 May 2020 14:03:12 +0530 Subject: [PATCH] fix: Aspect ratio fix for Safari --- .../hero_with_right_image/hero_with_right_image.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/website/web_template/hero_with_right_image/hero_with_right_image.html b/frappe/website/web_template/hero_with_right_image/hero_with_right_image.html index 8efc46a1b7..015bf8b222 100644 --- a/frappe/website/web_template/hero_with_right_image/hero_with_right_image.html +++ b/frappe/website/web_template/hero_with_right_image/hero_with_right_image.html @@ -23,7 +23,7 @@ {%- if image -%} {{ c('image_with_blur', - class=["hidden md:block max-h-144", "w-full md:w-6/12" if contain_image else "md:max-w-md lg:max-w-lg xl:max-w-xl xxl:max-w-2xl"], + class=["hidden md:block max-h-144 object-contain", "w-full md:w-6/12" if contain_image else "md:max-w-md lg:max-w-lg xl:max-w-xl xxl:max-w-2xl"], src=image, alt="") }}