This commit is contained in:
Mirco Wittrien 2021-01-24 13:36:34 +01:00
parent 50dbdc5621
commit f1928105c1
2 changed files with 3 additions and 5 deletions

View File

@ -1185,7 +1185,7 @@ module.exports = (_ => {
if (config.customIcon) {
let iconInner = BDFDB.DOMUtils.create(config.customIcon)
let icon = BDFDB.DOMUtils.create(`<i></i>`);
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);

View File

@ -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;