remove !important override from img here
This commit is contained in:
parent
2da5d2311b
commit
86b14da69f
|
@ -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!important;' +
|
'max-width:' + Discourse.SiteSettings.max_image_width + 'px;' +
|
||||||
'max-height:' + Discourse.SiteSettings.max_image_height + 'px!important;' +
|
'max-height:' + Discourse.SiteSettings.max_image_height + 'px;' +
|
||||||
'}</style>'
|
'}</style>'
|
||||||
).appendTo('head');
|
).appendTo('head');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue