From 8f9bd948f320cff6cfbc6209026db8e7b40bf666 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 2 Nov 2018 22:00:18 +0100 Subject: [PATCH] fix --- Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js index 9a6e8af078..fb530cbc2e 100644 --- a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js +++ b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js @@ -83,7 +83,7 @@ class ShowHiddenChannels { getDescription () {return "Displays channels that are hidden from you by role restrictions.";} - getVersion () {return "2.3.2";} + getVersion () {return "2.3.3";} getAuthor () {return "DevilBro";} @@ -502,7 +502,8 @@ class ShowHiddenChannels { htmlString += ``; } if (htmlString) { - var tooltip = BDFDB.createTooltip(htmlString, e.currentTarget, {type:"right", selector:"showhiddenchannels-tooltip", html:true, style:`max-width: ${window.outerWidth/2}px !important;`}); + var width = window.outerWidth/2; + var tooltip = BDFDB.createTooltip(htmlString, e.currentTarget, {type:"right", selector:"showhiddenchannels-tooltip", html:true, style:`max-width: ${width < 200 ? 400 : width}px !important;`}); tooltip.style.top = tooltip.style.top.replace("px","") - $(e.currentTarget).css("padding-bottom").replace("px","")/2 + $(e.currentTarget).css("padding-top").replace("px","")/2 + "px"; } }