another approach on mobile email images

This commit is contained in:
Jeff Atwood 2014-10-20 10:38:21 -07:00
parent 13ea9d655d
commit d2fb2bc4cd
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ module Email
img['width'] = 20
img['height'] = 20
else
add_styles(img, 'max-width:100%;height:auto;') if img['style'] !~ /max-width/
# having no extra style on email images might work best?
img['width'] = 'auto'
img['height'] = 'auto'
# add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
end
# ensure all urls are absolute