mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 02:06:40 +08:00
another approach on mobile email images
This commit is contained in:
parent
13ea9d655d
commit
d2fb2bc4cd
@ -35,7 +35,10 @@ module Email
|
|||||||
img['width'] = 20
|
img['width'] = 20
|
||||||
img['height'] = 20
|
img['height'] = 20
|
||||||
else
|
else
|
||||||
add_styles(img, 'max-width:100%;height:auto;') if img['style'] !~ /max-width/
|
# having no extra style on email images might work best?
|
||||||
|
img['width'] = 'auto'
|
||||||
|
img['height'] = 'auto'
|
||||||
|
# add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
|
||||||
end
|
end
|
||||||
|
|
||||||
# ensure all urls are absolute
|
# ensure all urls are absolute
|
||||||
|
Loading…
x
Reference in New Issue
Block a user