mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
FIX: ensureMaximumDimensionForImagesInPreview wasn't always working
This commit is contained in:
parent
2ef53f89f4
commit
76c246664d
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
|
|||
|
||||
ensureMaximumDimensionForImagesInPreview: function() {
|
||||
$('<style>#wmd-preview img, .cooked img {' +
|
||||
'max-width:' + Discourse.SiteSettings.max_image_width + 'px;' +
|
||||
'max-height:' + Discourse.SiteSettings.max_image_height + 'px;' +
|
||||
'max-width:' + Discourse.SiteSettings.max_image_width + 'px!important;' +
|
||||
'max-height:' + Discourse.SiteSettings.max_image_height + 'px!important;' +
|
||||
'}</style>'
|
||||
).appendTo('head');
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue