This commit is contained in:
Mirco Wittrien 2021-06-10 21:05:11 +02:00
parent 3fe6005737
commit 5fcd397951
4 changed files with 13 additions and 9 deletions

View File

@ -470,12 +470,16 @@ img:not([src]), img[src=""], img[src="null"] {
margin-top: 8px;
user-select: text;
}
[REPLACE_CLASS_userprofilenametag] + [REPLACE_CLASS_userinfodate],
[REPLACE_CLASS_userinfodate] + [REPLACE_CLASS_userinfodate] {
margin-top: 0;
}
[REPLACE_CLASS_userinfodate] + *:not([REPLACE_CLASS_userinfodate]) {
margin-top: 6px;
}
[REPLACE_CLASS_userprofile] [REPLACE_CLASS_userinfodate] {
margin-left: 16px;
}
[REPLACE_CLASS_avatardisabled] {
filter: grayscale(100%) brightness(50%);

View File

@ -2,7 +2,7 @@
* @name CreationDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.4.4
* @version 1.4.5
* @description Displays the Creation Date of an Account in the UserPopout and UserModal
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "CreationDate",
"author": "DevilBro",
"version": "1.4.4",
"version": "1.4.5",
"description": "Displays the Creation Date of an Account in the UserPopout and UserModal"
},
"changeLog": {
@ -164,7 +164,7 @@ module.exports = (_ => {
processUserProfileModalHeader (e) {
if (e.instance.props.user && this.settings.places.userProfile) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
if (index > -1) this.injectDate(children, 1, e.instance.props.user);
if (index > -1) this.injectDate(children, index + 1, e.instance.props.user);
}
}

View File

@ -2,7 +2,7 @@
* @name JoinedAtDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.3.0
* @version 1.3.1
* @description Displays the Joined At Date of a Member in the UserPopout and UserModal
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "JoinedAtDate",
"author": "DevilBro",
"version": "1.3.0",
"version": "1.3.1",
"description": "Displays the Joined At Date of a Member in the UserPopout and UserModal"
},
"changeLog": {
@ -179,7 +179,7 @@ module.exports = (_ => {
processUserProfileModalHeader (e) {
if (currentProfile && e.instance.props.user && this.settings.places.userProfile) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
if (index > -1) this.injectDate(currentProfile, children, 1, e.instance.props.user, currentProfile.props.guildId);
if (index > -1) this.injectDate(currentProfile, children, index + 1, e.instance.props.user, currentProfile.props.guildId);
}
}

View File

@ -2,7 +2,7 @@
* @name LastMessageDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.2.5
* @version 1.2.6
* @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
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "LastMessageDate",
"author": "DevilBro",
"version": "1.2.5",
"version": "1.2.6",
"description": "Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal"
},
"changeLog": {
@ -189,7 +189,7 @@ module.exports = (_ => {
processUserProfileModalHeader (e) {
if (currentProfile && e.instance.props.user && this.settings.places.userProfile) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
if (index > -1) this.injectDate(currentProfile, children, 1, e.instance.props.user, currentProfile.props.guildId);
if (index > -1) this.injectDate(currentProfile, children, index + 1, e.instance.props.user, currentProfile.props.guildId);
}
}