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
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}, },