mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 18:12:56 +08:00
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() {
|
ensureMaximumDimensionForImagesInPreview: function() {
|
||||||
$('<style>#wmd-preview img, .cooked img {' +
|
$('<style>#wmd-preview img, .cooked img {' +
|
||||||
'max-width:' + Discourse.SiteSettings.max_image_width + 'px;' +
|
'max-width:' + Discourse.SiteSettings.max_image_width + 'px!important;' +
|
||||||
'max-height:' + Discourse.SiteSettings.max_image_height + 'px;' +
|
'max-height:' + Discourse.SiteSettings.max_image_height + 'px!important;' +
|
||||||
'}</style>'
|
'}</style>'
|
||||||
).appendTo('head');
|
).appendTo('head');
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user