From ab911205477f6badb576238bf4ccdbdfaea4097f Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Sun, 19 Oct 2014 22:52:47 -0700 Subject: [PATCH] mobile emails, use 100% / auto img sizing --- lib/email/styles.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 3cc891e94e..92b5336adf 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -35,7 +35,7 @@ module Email img['width'] = 20 img['height'] = 20 else - add_styles(img, 'max-width: 694px;') if img['style'] !~ /max-width/ + add_styles(img, 'max-width:100%;height:auto;') if img['style'] !~ /max-width/ end # ensure all urls are absolute