A platform for community discussion. Free, open, simple.
FIX: Add check for youtube thumbnail (#11000)
Jordan Vidrinef85f5eb17918
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.jsindex 526f347da2b..dd08190e667 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@@ -22,7 +22,7 @@ export default {const style = "max-width:" + width + "px;" + "max-height:" + height + "px;";$(- '<style id="image-sizing-hack">#reply-control .d-editor-preview img:not(.thumbnail), .cooked img:not(.thumbnail) {' ++ '<style id="image-sizing-hack">#reply-control .d-editor-preview img:not(.thumbnail):not(.ytp-thumbnail-image), .cooked img:not(.thumbnail):not(.ytp-thumbnail-image) {' +style +"}</style>").appendTo("head");