mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 18:06:55 +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
|
@ -152,10 +152,14 @@ export function generateBadgeCSS(badge, version, data, style, is_dark, badge_ver
|
|||
fore = fg_fixer.process(fore) || fore;
|
||||
}
|
||||
|
||||
if ( ! base_image && style > 3 )
|
||||
style = 1;
|
||||
if ( ! base_image ) {
|
||||
if ( style > 4 )
|
||||
style = 1;
|
||||
else if ( style > 3 )
|
||||
style = 2;
|
||||
}
|
||||
|
||||
return `${clickable && (data.click_url || data.click_action) ? 'cursor:pointer;' : ''}${invert ? 'filter:invert(100%);' : ''}${CSS_TEMPLATES[style]({
|
||||
return `${clickable && (data.click_handler || data.click_url || data.click_action) ? 'cursor:pointer;' : ''}${invert ? 'filter:invert(100%);' : ''}${CSS_TEMPLATES[style]({
|
||||
scale: 1,
|
||||
color,
|
||||
fore,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue