Fix the background color leaking from the character widget

This commit is contained in:
KingRainbow44 2023-05-26 11:22:54 -04:00
parent 77fa859caa
commit cf4389cd1d
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -39,13 +39,13 @@ class Character extends React.PureComponent<IProps> {
return ( return (
<div <div
className={"Character"} className={"Character"}
style={{ backgroundColor: `var(${qualityColor})` }}
onClick={this.props.onClick} onClick={this.props.onClick}
> >
<img <img
className={"Character_Icon"} className={"Character_Icon"}
alt={name} alt={name}
src={`https://paimon.moe/images/characters/${formatAvatarName(name, id)}.png`} src={`https://paimon.moe/images/characters/${formatAvatarName(name, id)}.png`}
style={{ backgroundColor: `var(${qualityColor})` }}
/> />
<div className={"Character_Label"}> <div className={"Character_Label"}>