mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
FIX: Add check for youtube thumbnail (#11000)
This commit adds a check for the youtube thumbnail class when enforcing max-image-dimensions.
This commit is contained in:
parent
919f488358
commit
f85f5eb179
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user