diff --git a/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js b/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js index 8d004faaab..8e7a34d053 100644 --- a/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js +++ b/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js @@ -2,7 +2,7 @@ * @name ReadAllNotificationsButton * @author DevilBro * @authorId 278543574059057154 - * @version 1.7.0 + * @version 1.7.1 * @description Adds a Clear Button to the Server List and the Mentions Popout * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "ReadAllNotificationsButton", "author": "DevilBro", - "version": "1.7.0", + "version": "1.7.1", "description": "Adds a Clear Button to the Server List and the Mentions Popout" } }; @@ -163,7 +163,10 @@ module.exports = (_ => { ${BDFDB.dotCN.messagespopouttabbar} { flex: 1 0 auto; } - ${BDFDB.dotCN.messagespopouttabbar} ~ * { + ${BDFDB.dotCN.messagespopoutcontrols} { + display: flex; + } + ${BDFDB.dotCN.messagespopoutcontrols} > * { margin-left: 10px; } ${BDFDB.dotCN._readallnotificationsbuttonframe} { @@ -281,8 +284,9 @@ module.exports = (_ => { } processRecentsHeader (e) { - if (this.settings.general.addClearButton && e.instance.props.tab == BDFDB.LibraryModules.InboxUtils.InboxTab.MENTIONS) e.returnvalue.props.children.push(BDFDB.ReactUtils.createElement("div", { - children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, { + if (this.settings.general.addClearButton && e.instance.props.tab == BDFDB.LibraryModules.InboxUtils.InboxTab.MENTIONS) e.returnvalue.props.children = [ + e.returnvalue.props.children, + BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, { text: `${BDFDB.LanguageUtils.LanguageStrings.CLOSE} (${BDFDB.LanguageUtils.LanguageStrings.FORM_LABEL_ALL})`, children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, { className: BDFDB.disCNS.messagespopoutbutton + BDFDB.disCNS.messagespopoutbuttonsecondary + BDFDB.disCN.messagespopoutbuttonsize32, @@ -324,7 +328,7 @@ module.exports = (_ => { } }) }) - })); + ].flat(10); } batchSetGuilds (settingsPanel, collapseStates, value) {