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:
parent
206d8db433
commit
95223938a5
|
@ -27,7 +27,7 @@ export default {
|
||||||
|
|
||||||
const styleTag = document.createElement("style");
|
const styleTag = document.createElement("style");
|
||||||
styleTag.id = "image-sizing-hack";
|
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);
|
document.head.appendChild(styleTag);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue