stuff
This commit is contained in:
parent
e2d9310900
commit
1a242a8b69
|
@ -1138,7 +1138,7 @@ module.exports = (_ => {
|
|||
}
|
||||
else BDFDB.DOMUtils.addClass(toast, BDFDB.disCN.toastdefault);
|
||||
}
|
||||
let iconMarkup = config.avatar || config.icon || config.type && ToastIcons[config.type] && InternalComponents.LibraryComponents.SvgIcon.Names[ToastIcons[config.type]]?.icon.replace("%%width", 20).replace("%%height", 20).replace("%%color", "currentColor");
|
||||
let iconMarkup = config.avatar || config.icon || config.type && ToastIcons[config.type] && InternalComponents.LibraryComponents.SvgIcon.Names[ToastIcons[config.type]]?.icon.replace("%%width", 18).replace("%%height", 18).replace("%%color", "currentColor");
|
||||
if (iconMarkup) {
|
||||
let icon = document.createElement("div"), iconInner = BDFDB.DOMUtils.create(iconMarkup);
|
||||
if (iconInner.nodeType == Node.TEXT_NODE) icon.style.setProperty("background", `url(${iconMarkup}) center/cover no-repeat`);
|
||||
|
|
|
@ -1098,11 +1098,12 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
border-radius: 5px;
|
||||
box-shadow: var(--elevation-medium);
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
opacity: 1;
|
||||
padding: 6px 10px;
|
||||
min-height: 24px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
user-select: text;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
animation: toast-up 300ms ease;
|
||||
transform: translateY(-10px);
|
||||
|
@ -1124,7 +1125,7 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
flex: 0 0 auto;
|
||||
width: 24px;
|
||||
width: 18px;
|
||||
height: 24px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
@ -1132,8 +1133,12 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
background-position: center;
|
||||
background-size: cover;
|
||||
border-radius: 50%;
|
||||
width: 24px;
|
||||
overflow: hidden;
|
||||
}
|
||||
[REPLACE_CLASS_toasttext] {
|
||||
min-height: 24px;
|
||||
}
|
||||
[REPLACE_CLASS_toastdefault] {
|
||||
background-color: var(--background-floating);
|
||||
color: var(--header-primary);
|
||||
|
|
Loading…
Reference in New Issue