diff --git a/app/assets/javascripts/discourse/app/initializers/ensure-max-image-dimensions.js b/app/assets/javascripts/discourse/app/initializers/ensure-max-image-dimensions.js index 66f6b92519c..53534f1b385 100644 --- a/app/assets/javascripts/discourse/app/initializers/ensure-max-image-dimensions.js +++ b/app/assets/javascripts/discourse/app/initializers/ensure-max-image-dimensions.js @@ -27,7 +27,7 @@ export default { const styleTag = document.createElement("style"); styleTag.id = "image-sizing-hack"; - styleTag.innerHTML = `#reply-control .d-editor-preview img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji), .cooked img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji) {${styles}}`; + styleTag.innerHTML = `#reply-control .d-editor-preview img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji), .cooked img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji):not(.svg-as-img) {${styles}}`; document.head.appendChild(styleTag); }, };