increase auto email img width threshold to 50px

This commit is contained in:
Jeff Atwood
2014-11-07 14:34:15 -08:00
parent 0777efe74d
commit e669fed8ea

View File

@ -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