mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
improved email scale img
This commit is contained in:
parent
befe0dce89
commit
5b737830af
@ -38,7 +38,7 @@ module Email
|
||||
img['height'] = 20
|
||||
else
|
||||
# having no extra style on email images might work best?
|
||||
if img['width'].to_i > 250 and img['height'].to_i > 250
|
||||
if img['width'].to_i > 400 or img['height'].to_i > 400
|
||||
img['width'] = 'auto'
|
||||
img['height'] = 'auto'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user