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

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);
},
};