mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
Fix generation of CSS for transparent image badges added by FFZ or other extensions.
This commit is contained in:
parent
aee458badd
commit
c9430e1aad
1 changed files with 5 additions and 4 deletions
|
@ -95,11 +95,12 @@ export function generateBadgeCSS(badge, version, data, style, is_dark, scale = 1
|
|||
if ( style === 3 || style === 4 ) {
|
||||
if ( color === 'transparent' && data.trans )
|
||||
color = data.trans.color || color;
|
||||
}
|
||||
|
||||
} else {
|
||||
if ( style < 5 && color === 'transparent' )
|
||||
style = 0;
|
||||
if ( color === 'transparent' )
|
||||
style = 0;
|
||||
|
||||
if ( style !== 3 && style !== 4 ) {
|
||||
svg = base_image.endsWith('.svg');
|
||||
if ( data.urls )
|
||||
image = `url("${data.urls[1]}")`;
|
||||
|
@ -198,7 +199,7 @@ export default class Badges extends Module {
|
|||
|
||||
} else if ( p === 'ffz' ) {
|
||||
out.push(e('div', {className: 'ffz-badge-tip'}, [
|
||||
show_previews && e('img', {
|
||||
show_previews && e('div', {
|
||||
className: 'preview-image ffz-badge',
|
||||
style: {
|
||||
height: '7.2rem',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue