FIX: Exclude emoji images from JS sizing (#12796)

Should remove jumpiness when using the experimental
`disable_image_size_calculations` site setting.
This commit is contained in:
Penar Musaraj 2021-04-21 20:51:44 -04:00 committed by GitHub
parent 206d8db433
commit 95223938a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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), .cooked img:not(.thumbnail):not(.ytp-thumbnail-image) {${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) {${styles}}`;
document.head.appendChild(styleTag);
},
};