From 0c67fd0eb5372fad30f27037ecbaa4f9a0a7c8b9 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 27 Nov 2018 16:44:38 +0100 Subject: [PATCH] fix --- Plugins/CreationDate/CreationDate.plugin.js | 4 ++-- Plugins/JoinedAtDate/JoinedAtDate.plugin.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/CreationDate/CreationDate.plugin.js b/Plugins/CreationDate/CreationDate.plugin.js index 3b25425314..129bf06973 100644 --- a/Plugins/CreationDate/CreationDate.plugin.js +++ b/Plugins/CreationDate/CreationDate.plugin.js @@ -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"); diff --git a/Plugins/JoinedAtDate/JoinedAtDate.plugin.js b/Plugins/JoinedAtDate/JoinedAtDate.plugin.js index 1bae8fffaa..586600e2de 100644 --- a/Plugins/JoinedAtDate/JoinedAtDate.plugin.js +++ b/Plugins/JoinedAtDate/JoinedAtDate.plugin.js @@ -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");