mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-26 05:53:57 -04:00
yet another attempt at images in email
This commit is contained in:
parent
7659d491fd
commit
121426287a
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ module Email
|
||||||
# having no extra style on email images might work best?
|
# having no extra style on email images might work best?
|
||||||
img['width'] = 'auto'
|
img['width'] = 'auto'
|
||||||
img['height'] = 'auto'
|
img['height'] = 'auto'
|
||||||
# add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
|
add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
|
||||||
end
|
end
|
||||||
|
|
||||||
# ensure all urls are absolute
|
# ensure all urls are absolute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue