This commit is contained in:
Mirco Wittrien 2018-11-27 16:44:38 +01:00
parent 98504c17f4
commit 0c67fd0eb5
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ class CreationDate {
getDescription () {return "Displays the Creation Date of an Account in the UserPopout and UserModal.";}
getVersion () {return "1.2.0";}
getVersion () {return "1.2.1";}
getAuthor () {return "DevilBro";}
@ -207,7 +207,7 @@ class CreationDate {
var nametag = container.querySelector(BDFDB.dotCN.nametag);
var joinedAtDate = container.querySelector(".joinedAtDate");
container.insertBefore(creationDate[0], joinedAtDate ? joinedAtDate.nextSibling : (nametag ? nametag.nextSibling : null));
if (popout) {
if (popout && popout.style.transform.indexOf("translateY(-1") == -1) {
var arect = document.querySelector(BDFDB.dotCN.appmount).getBoundingClientRect();
var prect = popout.getBoundingClientRect();
popout.style.setProperty("top", (prect.y + prect.height > arect.height ? (arect.height - prect.height) : prect.y) + "px");

View File

@ -47,7 +47,7 @@ class JoinedAtDate {
getDescription () {return "Displays the Joined At Date of the current Server for a Member in the UserPopout and UserModal.";}
getVersion () {return "1.0.1";}
getVersion () {return "1.0.2";}
getAuthor () {return "DevilBro";}
@ -217,7 +217,7 @@ class JoinedAtDate {
var nametag = container.querySelector(BDFDB.dotCN.nametag);
var creationDate = container.querySelector(".creationDate");
container.insertBefore(joinedAtDate[0], creationDate ? creationDate : (nametag ? nametag.nextSibling : null));
if (popout) {
if (popout && popout.style.transform.indexOf("translateY(-1") == -1) {
var arect = document.querySelector(BDFDB.dotCN.appmount).getBoundingClientRect();
var prect = popout.getBoundingClientRect();
popout.style.setProperty("top", (prect.y + prect.height > arect.height ? (arect.height - prect.height) : prect.y) + "px");