From 54a25f9bd5c36a95be514a8facf6ea414215a74e Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 11 Jul 2019 23:03:36 +0200 Subject: [PATCH] fix --- Plugins/CharCounter/CharCounter.plugin.js | 14 ++++++-------- Plugins/EditUsers/EditUsers.plugin.js | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Plugins/CharCounter/CharCounter.plugin.js b/Plugins/CharCounter/CharCounter.plugin.js index f5ba06d41a..0e08d6ed17 100644 --- a/Plugins/CharCounter/CharCounter.plugin.js +++ b/Plugins/CharCounter/CharCounter.plugin.js @@ -3,7 +3,7 @@ class CharCounter { getName () {return "CharCounter";} - getVersion () {return "1.3.4";} + getVersion () {return "1.3.5";} getAuthor () {return "DevilBro";} @@ -11,13 +11,13 @@ class CharCounter { initConstructor () { this.changelog = { - "fixed":[["Context Menu","Fixed the issue where the plugin would break the copy/paste actions via the textarea contextmenu"]] + "fixed":[["Nickname Modal","Fixed for the nickname modal"]] }; this.patchModules = { "ChannelTextArea":"componentDidMount", "Note":"componentDidMount", - "Modal":"componentDidMount" + "ChangeNickname":"componentDidMount" }; this.maxLenghts = { @@ -149,11 +149,9 @@ class CharCounter { this.appendCounter(wrapper.firstElementChild, BDFDB.containsClass(wrapper, BDFDB.disCN.usernotepopout) ? "popout" : (BDFDB.containsClass(wrapper, BDFDB.disCN.usernoteprofile) ? "profile" : null), false); } - processModal (instance, wrapper) { - if (instance.props && instance.props.tag == "form") { - let reset = wrapper.querySelector(BDFDB.dotCN.reset); - if (reset && BDFDB.getInnerText(reset.firstElementChild) == BDFDB.LanguageStrings.RESET_NICKNAME) this.appendCounter(wrapper.querySelector(BDFDB.dotCN.inputdefault), "nickname", false); - } + processChangeNickname (instance, wrapper) { + let reset = wrapper.querySelector(BDFDB.dotCN.reset); + if (reset && BDFDB.getInnerText(reset.firstElementChild) == BDFDB.LanguageStrings.RESET_NICKNAME) this.appendCounter(wrapper.querySelector(BDFDB.dotCN.inputdefault), "nickname", false); } appendCounter (input, type, parsing) { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 6548857150..f91f5f9a8d 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -56,7 +56,7 @@ class EditUsers { position: relative; margin: 0 0 0 1ch; } - ${BDFDB.dotCNC.userpopoutheaderbottag + BDFDB.dotCN.userpopoutheaderbottagwithnickname} { + ${BDFDB.dotCN.userpopoutheaderbottagwithnickname} { bottom: 4px; } ${BDFDB.dotCNS.userpopoutheadertagwithnickname + BDFDB.dotCN.userpopoutheaderbottagwithnickname} {