This commit is contained in:
Mirco Wittrien 2024-08-16 16:41:42 +02:00
parent 8c4a11396c
commit 6c70028832
2 changed files with 13 additions and 11 deletions

View File

@ -2,7 +2,7 @@
* @name LastMessageDate * @name LastMessageDate
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @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 * @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -102,13 +102,14 @@ module.exports = (_ => {
nativeClass: false, nativeClass: false,
name: BDFDB.LibraryComponents.SvgIcon.Names.NUMPAD name: BDFDB.LibraryComponents.SvgIcon.Names.NUMPAD
}); });
return BDFDB.ReactUtils.createElement(!this.props.isInPopout ? "section" : "div", { return BDFDB.ReactUtils.createElement("section", {
className: !this.props.isInPopout && BDFDB.disCN.userprofilesection, className: BDFDB.disCN.userprofilesection,
children: [ children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, { BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, {
className: this.props.isInPopout ? BDFDB.disCN.userpopoutsectiontitle : BDFDB.disCN.userprofilesectionheading, className: BDFDB.disCN.userprofilesectionheading,
variant: this.props.isInPopout ? "eyebrow" : "text-xs/semibold", variant: "text-xs/semibold",
style: this.props.isInPopout ? {} : {color: "var(--header-secondary)"}, style: {color: "var(--header-secondary)"},
color: null,
children: _this.labels.last_message children: _this.labels.last_message
}), }),
BDFDB.ReactUtils.createElement(loadedUsers[this.props.guildId][this.props.user.id] ? BDFDB.LibraryComponents.Clickable : "div", { BDFDB.ReactUtils.createElement(loadedUsers[this.props.guildId][this.props.user.id] ? BDFDB.LibraryComponents.Clickable : "div", {

View File

@ -2,7 +2,7 @@
* @name ShowConnections * @name ShowConnections
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.2.3 * @version 1.2.4
* @description Shows the connected Accounts of a User in the UserPopout * @description Shows the connected Accounts of a User in the UserPopout
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @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]); let connections = loadedUsers[this.props.user.id].filter(c => _this.settings.connections[c.type]);
if (!connections.length) return null; if (!connections.length) return null;
let isLightTheme = (!this.props.theme || this.props.theme == "light") && BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight; let isLightTheme = (!this.props.theme || this.props.theme == "light") && BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight;
return BDFDB.ReactUtils.createElement("div", { return BDFDB.ReactUtils.createElement("section", {
className: BDFDB.DOMUtils.formatClassName(!this.props.isSimplified && BDFDB.disCN.userpopoutsection, BDFDB.disCN._showconnectionsconnectionswrapper), className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.userprofilesection, BDFDB.disCN._showconnectionsconnectionswrapper),
children: [ children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, { BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Heading, {
className: BDFDB.disCN.userpopoutsectiontitle, className: BDFDB.disCN.userprofilesectionheading,
variant: "eyebrow", variant: "text-xs/semibold",
style: {color: "var(--header-secondary)"},
color: null, color: null,
children: BDFDB.LanguageUtils.LanguageStrings.CONNECTIONS children: BDFDB.LanguageUtils.LanguageStrings.CONNECTIONS
}), }),