1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Change the settings pop-out to use a chat pop-out. Tweaks to badge visibility rendering. Forcibly set tw-theme--dark on body since Twitch doesn't do it consistently with pop-outs.

This commit is contained in:
SirStendec 2018-03-24 04:19:41 -04:00
parent cc682230e2
commit c190ecf5ed
11 changed files with 129 additions and 108 deletions

View file

@ -37,9 +37,10 @@ export default class TooltipProvider extends Module {
}
onEnable() {
const container = document.body.querySelector('.twilight-root') || document.body;
const container = document.querySelector('.twilight-root,.twilight-minimal-root') || document.body,
is_minimal = container && container.classList.contains('twilight-minimal-root');
this.tips = new Tooltip('body #root', 'ffz-tooltip', {
this.tips = new Tooltip(is_minimal ? '.twilight-minimal-root' : 'body #root', 'ffz-tooltip', {
html: true,
delayHide: this.checkDelayHide.bind(this),
delayShow: this.checkDelayShow.bind(this),