From f1928105c198aa43a25bf6e23b0d7578a61b72db Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 24 Jan 2021 13:36:34 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 2 +- Library/_res/BDFDB.raw.css | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index d581723a93..ee8c01ff80 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -1185,7 +1185,7 @@ module.exports = (_ => { if (config.customIcon) { let iconInner = BDFDB.DOMUtils.create(config.customIcon) let icon = BDFDB.DOMUtils.create(``); - if (iconInner.tagName == "span" && !iconinner.firstElementChild) icon.style.setProperty("background", `url(${config.customIcon}) center/cover no-repeat`); + if (iconInner.tagName == "span" && !iconInner.firstElementChild) icon.style.setProperty("background", `url(${config.customIcon}) center/cover no-repeat`); else icon.appendChild(iconInner); BDFDB.DOMUtils.addClass(icon, BDFDB.disCN.noticeplatformicon); BDFDB.DOMUtils.removeClass(icon, BDFDB.disCN.noticeicon); diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index f1243eda3d..6f087a6323 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -1093,6 +1093,8 @@ img:not([src]), img[src=""], img[src="null"] { } } [REPLACE_CLASS_toast] { + display: flex; + align-items: center; border-radius: 5px; box-shadow: var(--elevation-medium); margin-top: 10px; @@ -1117,10 +1119,6 @@ img:not([src]), img[src=""], img[src="null"] { opacity: 1; transform: translateY(-10px); } -[REPLACE_CLASS_toasttext] { - display: flex; - align-items: center; -} [REPLACE_CLASS_toastavatar] { margin-right: 6px; width: 24px;