fix
This commit is contained in:
parent
98504c17f4
commit
0c67fd0eb5
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue