remove !important override from img here

This commit is contained in:
Jeff Atwood 2014-01-01 23:19:12 -08:00
parent 2da5d2311b
commit 86b14da69f

View file

@ -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!important;' +
'max-height:' + Discourse.SiteSettings.max_image_height + 'px!important;' +
'max-width:' + Discourse.SiteSettings.max_image_width + 'px;' +
'max-height:' + Discourse.SiteSettings.max_image_height + 'px;' +
'}</style>'
).appendTo('head');
},