diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index fb0d88e6a0..5bf4cb1675 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -1248,8 +1248,11 @@ module.exports = (_ => { notice.style.setProperty("max-width", `calc(100vw - ${sideMargin*2}px)`, "important"); } notice.querySelector(BDFDB.dotCN.noticedismiss).addEventListener("click", _ => { - notice.style.setProperty("overflow", "hidden", "important"); - notice.style.setProperty("height", "0px", "important"); + BDFDB.DOMUtils.addClass(notice, BDFDB.disCN.noticeclosing); + if (options.forceStyle) { + notice.style.setProperty("overflow", "hidden", "important"); + notice.style.setProperty("height", "0px", "important"); + } if (notice.tooltip && typeof notice.tooltip.removeTooltip == "function") notice.tooltip.removeTooltip(); BDFDB.TimeUtils.timeout(_ => { if (typeof options.onClose == "function") options.onClose(); diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index 3a2c8b0c77..f65ffe6e68 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -585,6 +585,7 @@ "multiInputFirst": "multiInputFirst-5rMj_O", "multiInputLast": "multiInputLast-HWxgTr", "multiInputWrapper": "multiInputWrapper-g6Srtv", + "noticeClosing": "closing-g5Srr2", "noticeText": "text-kRs522", "noticeUpdateText": "notice-message", "noticeWrapper": "noticeWrapper-8z511t", @@ -2305,6 +2306,7 @@ "notice": ["Notice", "notice"], "noticebrand": ["Notice", "colorBrand"], "noticebutton": ["Notice", "button"], + "noticeclosing": ["BDFDB", "noticeClosing"], "noticecustom": ["Notice", "colorCustom"], "noticedanger": ["Notice", "colorDanger"], "noticedark": ["Notice", "colorDark"], diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 11e5d8aa97..fe6e63acf1 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -892,6 +892,10 @@ img:not([src]), img[src=""], img[src="null"] { border-radius: 0 !important; transition: height 10s ease !important; } +[REPLACE_CLASS_noticeclosing] { + height: 0 !important; + overflow: hidden !important; +} [REPLACE_CLASS_noticewrapper] [REPLACE_CLASS_noticeplatformicon] { margin-top: -7px; }