Skip to content

Commit

Permalink
FIX: excludes .svg-as-img from JS sizing (#12906)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Apr 30, 2021
1 parent d3b05f8 commit 2f0205e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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):not(.emoji), .cooked img:not(.thumbnail):not(.ytp-thumbnail-image):not(.emoji) {${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):not(.svg-as-img) {${styles}}`;
document.head.appendChild(styleTag);
},
};

0 comments on commit 2f0205e

Please sign in to comment.