Adds `max-width` to images in digest emails.

This commit is contained in:
Robin Ward 2013-06-11 12:28:50 -04:00
parent 8b4e3402c2
commit e2ce4947d7
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ module Email
hr['style'] = 'background-color: #ddd; height: 1px; border: 1px;'
end
fragment.css('img').each do |img|
img['style'] = "max-width: 694px;"
end
fragment.css('a').each do |a|
a['style'] = 'text-decoration: none; font-weight: bold; font-size: 15px; color: #006699;'
end