mobile emails, use 100% / auto img sizing

This commit is contained in:
Jeff Atwood 2014-10-19 22:52:47 -07:00
parent 2517496bf4
commit ab91120547

View file

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