This commit is contained in:
ntr 2019-05-02 16:44:11 +10:00
parent 423f4fcfbc
commit 6c13dc0d15
2 changed files with 10 additions and 14 deletions

View File

@ -726,12 +726,16 @@ table td svg {
margin-right: 0.5em; margin-right: 0.5em;
} }
.game-cryp button { .game-cryp button, .mobile-skills button {
color: #333333; color: #333333;
flex: 1 1 100%; flex: 1 1 100%;
font-size: 16pt;
padding: 0;
margin: 0;
border-width: 0px;
} }
.game-cryp button.active { .game-cryp button.active, .mobile-skills button {
color: whitesmoke; color: whitesmoke;
} }
@ -980,6 +984,10 @@ CRYP DAMAGE
flex: unset; flex: unset;
} }
.instance-cryp .skills, .instance-cryp .stats {
display: none;
}
.instance-info { .instance-info {
flex: 1; flex: 1;
} }
@ -999,10 +1007,6 @@ CRYP DAMAGE
width: 100%; width: 100%;
} }
.game-cryp .skills {
display: none;
}
.mobile-spacer { .mobile-spacer {
flex: 1 1 25%; flex: 1 1 25%;
flex-flow: column; flex-flow: column;
@ -1028,7 +1032,6 @@ CRYP DAMAGE
font-size: 16pt; font-size: 16pt;
padding: 0; padding: 0;
margin: 0; margin: 0;
border-width: 0px;
} }
.game-cryp .stats { .game-cryp .stats {

View File

@ -179,18 +179,11 @@ function GamePanel(props) {
); );
} }
const mobileSkills = activeCryp && activeCryp.green_life.value
? range(0, 3).map(i => <SkillBtn key={i} cryp={activeCryp} i={i} mobile={true} />)
: (<div/>);
return ( return (
<main className="game" onClick={() => setActiveCryp(null)} > <main className="game" onClick={() => setActiveCryp(null)} >
{header} {header}
{timer} {timer}
{PlayerTeam(playerTeam, setActiveSkill)} {PlayerTeam(playerTeam, setActiveSkill)}
<div className="mobile-skills">
{mobileSkills}
</div>
<div className="mobile-spacer">&nbsp;</div> <div className="mobile-spacer">&nbsp;</div>
{otherTeams.map(OpponentTeam)} {otherTeams.map(OpponentTeam)}
</main> </main>