mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix tool-tip placement. Fix incorrect player width in theater mode with collapsed chat and a custom chat width set. Fix channel bar placement with minimize navigation. Fix player size when entering fullscreen with theater mode enabled. Fix minor bug in has
method.
This commit is contained in:
parent
160dd98062
commit
be9de6de25
7 changed files with 44 additions and 9 deletions
|
@ -30,9 +30,15 @@ export default class TooltipProvider extends Module {
|
|||
}, target.dataset.data)
|
||||
]
|
||||
}
|
||||
|
||||
this.types.html = target => {
|
||||
return target.dataset.title;
|
||||
}
|
||||
}
|
||||
|
||||
onEnable() {
|
||||
const container = document.body.querySelector('.twilight-root') || document.body;
|
||||
|
||||
this.tips = new Tooltip('body [data-reactroot]', 'ffz-tooltip', {
|
||||
html: true,
|
||||
delayHide: this.checkDelayHide.bind(this),
|
||||
|
@ -40,7 +46,15 @@ export default class TooltipProvider extends Module {
|
|||
content: this.process.bind(this),
|
||||
interactive: this.checkInteractive.bind(this),
|
||||
popper: {
|
||||
placement: 'top'
|
||||
placement: 'top',
|
||||
modifiers: {
|
||||
flip: {
|
||||
behavior: ['top', 'bottom', 'left', 'right']
|
||||
},
|
||||
preventOverflow: {
|
||||
boundariesElement: container
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue