1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 15:27:43 +00:00

Change multi-badge tooltips to put two badges on each line for a nicer display. Fix replacing badges while also setting per-user badge overrides.

This commit is contained in:
SirStendec 2018-02-02 18:51:38 -05:00
parent 2efbd1ae59
commit 8e27f2e6a3
3 changed files with 38 additions and 14 deletions

View file

@ -217,6 +217,11 @@ export class Tooltip {
arrow.setAttribute('x-arrow', true);
if ( tip.add_class ) {
inner.classList.add(tip.add_class);
tip.add_class = undefined;
}
const interactive = maybe_call(opts.interactive, null, target, tip);
el.classList.toggle('interactive', interactive || false);