From 1a242a8b6948d8a6b5cec166ade2d0e44e0e4039 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 24 Jan 2021 15:20:33 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 2 +- Library/_res/BDFDB.raw.css | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index a44eb8a7ee..1d67d69f86 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -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`); diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 974aceadca..3c19f96efc 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -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);