From 6c70028832d4cc137c75c2e0e6f03a922cfa6283 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 16 Aug 2024 16:41:42 +0200 Subject: [PATCH] stuff --- Plugins/LastMessageDate/LastMessageDate.plugin.js | 13 +++++++------ Plugins/ShowConnections/ShowConnections.plugin.js | 11 ++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Plugins/LastMessageDate/LastMessageDate.plugin.js b/Plugins/LastMessageDate/LastMessageDate.plugin.js index 604e11aedc..9ede605e74 100644 --- a/Plugins/LastMessageDate/LastMessageDate.plugin.js +++ b/Plugins/LastMessageDate/LastMessageDate.plugin.js @@ -2,7 +2,7 @@ * @name LastMessageDate * @author DevilBro * @authorId 278543574059057154 - * @version 1.4.3 + * @version 1.4.4 * @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -102,13 +102,14 @@ module.exports = (_ => { nativeClass: false, name: BDFDB.LibraryComponents.SvgIcon.Names.NUMPAD }); - return BDFDB.ReactUtils.createElement(!this.props.isInPopout ? "section" : "div", { - className: !this.props.isInPopout && BDFDB.disCN.userprofilesection, + return BDFDB.ReactUtils.createElement("section", { + className: BDFDB.disCN.userprofilesection, children: [ BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, { - className: this.props.isInPopout ? BDFDB.disCN.userpopoutsectiontitle : BDFDB.disCN.userprofilesectionheading, - variant: this.props.isInPopout ? "eyebrow" : "text-xs/semibold", - style: this.props.isInPopout ? {} : {color: "var(--header-secondary)"}, + className: BDFDB.disCN.userprofilesectionheading, + variant: "text-xs/semibold", + style: {color: "var(--header-secondary)"}, + color: null, children: _this.labels.last_message }), BDFDB.ReactUtils.createElement(loadedUsers[this.props.guildId][this.props.user.id] ? BDFDB.LibraryComponents.Clickable : "div", { diff --git a/Plugins/ShowConnections/ShowConnections.plugin.js b/Plugins/ShowConnections/ShowConnections.plugin.js index 8662880e8b..3049233708 100644 --- a/Plugins/ShowConnections/ShowConnections.plugin.js +++ b/Plugins/ShowConnections/ShowConnections.plugin.js @@ -2,7 +2,7 @@ * @name ShowConnections * @author DevilBro * @authorId 278543574059057154 - * @version 1.2.3 + * @version 1.2.4 * @description Shows the connected Accounts of a User in the UserPopout * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -78,12 +78,13 @@ module.exports = (_ => { let connections = loadedUsers[this.props.user.id].filter(c => _this.settings.connections[c.type]); if (!connections.length) return null; let isLightTheme = (!this.props.theme || this.props.theme == "light") && BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight; - return BDFDB.ReactUtils.createElement("div", { - className: BDFDB.DOMUtils.formatClassName(!this.props.isSimplified && BDFDB.disCN.userpopoutsection, BDFDB.disCN._showconnectionsconnectionswrapper), + return BDFDB.ReactUtils.createElement("section", { + className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.userprofilesection, BDFDB.disCN._showconnectionsconnectionswrapper), children: [ BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, { - className: BDFDB.disCN.userpopoutsectiontitle, - variant: "eyebrow", + className: BDFDB.disCN.userprofilesectionheading, + variant: "text-xs/semibold", + style: {color: "var(--header-secondary)"}, color: null, children: BDFDB.LanguageUtils.LanguageStrings.CONNECTIONS }),