mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-23 05:15:45 -04:00
let's go with original iPhone dimensions
This commit is contained in:
parent
5b737830af
commit
034942ac5f
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ module Email
|
|||
img['width'] = 20
|
||||
img['height'] = 20
|
||||
else
|
||||
# having no extra style on email images might work best?
|
||||
if img['width'].to_i > 400 or img['height'].to_i > 400
|
||||
# use dimensions of original iPhone screen for 'too big, let device rescale'
|
||||
if img['width'].to_i > 320 or img['height'].to_i > 480
|
||||
img['width'] = 'auto'
|
||||
img['height'] = 'auto'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue