mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-23 12:12:59 +08:00
Fix the background color leaking from the character widget
This commit is contained in:
parent
77fa859caa
commit
cf4389cd1d
@ -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"}>
|
||||||
|
Loading…
Reference in New Issue
Block a user