HideAttachments: fix broken css (#1707)

This commit is contained in:
AutumnVN 2023-09-06 23:51:48 +07:00 committed by GitHub
parent a4cadc03d8
commit 77bfaf38a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,7 @@ export default definePlugin({
async buildCss() {
const elements = [...hiddenMessages].map(id => `#message-accessories-${id}`).join(",");
style.textContent = `
:is(${elements}) :is([class*="embedWrapper", [class*"clickableSticker"]) {
:is(${elements}) :is([class*="embedWrapper"], [class*="clickableSticker"]) {
/* important is not necessary, but add it to make sure bad themes won't break it */
display: none !important;
}