text background

This commit is contained in:
Mashy
2019-11-06 19:02:15 +10:00
parent 787fd8ac90
commit e18356a554
4 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ function constructText(props) {
? animText.text
: construct.name;
return <h3 class={'name'}>{text}</h3>;
return <h3 class={'name'}><span>{text}</span></h3>;
}
module.exports = {
+5 -5
View File
@@ -153,11 +153,11 @@ class GameConstruct extends Component {
}
const effects = construct.effects.length
? construct.effects.map(c =>
<div
key={c.effect}
onMouseOver={e => hoverInfo(e, c)}
onMouseOut={e => hoverInfo(e, null)}
> {c.effect} - {c.duration}T</div>)
<div key={c.effect}>
<span key={c.effect} onMouseOver={e => hoverInfo(e, c)}
onMouseOut={e => hoverInfo(e, null)}> {c.effect} - {c.duration}T
</span>
</div>)
: null;
return (<div class="effects"> {effects} </div>);
};
+1 -1
View File
@@ -91,7 +91,7 @@ function Skill(props) {
onMouseOut={e => hoverInfo(e, null)}
type="submit"
onClick={onClick}>
{s.skill} {cdText}
<span>{s.skill} {cdText}</span>
</button>
);
}