From e669fed8ead80f7a312373d3c25997fb71545703 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 7 Nov 2014 14:34:15 -0800 Subject: [PATCH] increase auto email img width threshold to 50px --- lib/email/styles.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/email/styles.rb b/lib/email/styles.rb index 8cf61241b52..9a31ec2f88d 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -38,8 +38,8 @@ module Email img['height'] = 20 else # having no extra style on email images might work best? - img['width'] = 'auto' if img['width'].to_i > 20 - img['height'] = 'auto' if img['height'].to_i > 20 + img['width'] = 'auto' if img['width'].to_i > 50 + img['height'] = 'auto' if img['height'].to_i > 50 add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/ end