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:
Jordan Vidrine 2020-10-23 08:40:49 -05:00 committed by GitHub
parent 919f488358
commit f85f5eb179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");