vbox highlighting

This commit is contained in:
ntr
2019-06-03 14:46:30 +10:00
parent 05a0113ab5
commit 03a35109dc
5 changed files with 41 additions and 39 deletions
+1 -2
View File
@@ -100,9 +100,8 @@ function GameConstruct(props) {
className={`game-construct ${ko} ${classes}`} >
<h3 className="name"> {construct.name} </h3>
{crypSkills}
<div className="avatar"></div>
<div className="targeting"> {targeting} </div>
<div className="stats"> {stats} </div>
<ConstructAvatar name={construct.name} id={construct.id} />
<div className="effects"> {effects} </div>
</div>
);
+3 -4
View File
@@ -82,11 +82,10 @@ function clearAnimation(id) {
class ConstructAvatar extends Component {
render() {
return (
<img
<div
className="avatar"
id={this.props.id}
src={`/molecules/${genAvatar(this.props.name)}.svg`}
height="500"
onError={event => event.target.setAttribute('src', '/molecules/726.svg')}
style={{'background-image': `url(/molecules/${genAvatar(this.props.name)}.svg)`}}
/>
);
}