FIX: ensureMaximumDimensionForImagesInPreview wasn't always working
This commit is contained in:
parent
2ef53f89f4
commit
76c246664d
|
@ -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 New Issue