mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 10:06:45 +08:00
Adds max-width
to images in digest emails.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user