mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
copyedits; email image auto for > 250 width/height
This commit is contained in:
@ -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 > 50
|
||||
img['height'] = 'auto' if img['height'].to_i > 50
|
||||
img['width'] = 'auto' if img['width'].to_i > 250
|
||||
img['height'] = 'auto' if img['height'].to_i > 250
|
||||
add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user