mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-27 13:08:30 +00:00
4.20.68
* Fixed: Subscribe and Follow buttons not using the theme accent color. (Twitch replaced the class name `.tw-accent-region` with the procedural name `.gocjHQ`) * Fixed: Add `Search` to the list of known pages for Profile rules. * Fixed: The FFZ Control Center not maximizing correctly on Team and Deck add-on pages. * Fixed: Tool-tips becoming impossible to dismiss after updating their contents. * API Added: `data-tooltip-type="markdown"` for `ffz-tooltip` elements. * API Added: `ffz-tooltip` elements can now specify `data-tooltip-side` and `data-tooltip-align` attributes for guiding the position of tooltips.
This commit is contained in:
parent
3fb6d5957a
commit
f5135ad291
8 changed files with 102 additions and 13 deletions
|
@ -269,8 +269,8 @@ export class Tooltip {
|
|||
tip.hide = () => this.hide(tip);
|
||||
tip.rerender = () => {
|
||||
if ( tip.visible ) {
|
||||
this.hide(tip);
|
||||
this.show(tip);
|
||||
tip.hide();
|
||||
tip.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -295,6 +295,9 @@ export class Tooltip {
|
|||
if ( opts.arrowInner )
|
||||
arrow.appendChild(createElement('div', opts.arrowInner));
|
||||
|
||||
if ( tip.align )
|
||||
inner.classList.add(`${opts.innerClass}--align-${tip.align}`);
|
||||
|
||||
if ( tip.add_class ) {
|
||||
inner.classList.add(tip.add_class);
|
||||
tip.add_class = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue