mobile styles

This commit is contained in:
ntr
2019-04-04 23:32:24 +11:00
parent 9fb65c2210
commit 158160d73b
3 changed files with 62 additions and 19 deletions
+2 -2
View File
@@ -116,8 +116,8 @@ function GamePanel(props) {
);
});
const stats = Object.values(STATS).map((s, i) => (
<figure key={i} alt={s.stat}>
const stats = [STATS.hp, STATS.redShield, STATS.blueShield].map((s, j) => (
<figure key={j} alt={s.stat}>
{s.svg(`stat-icon ${s.colour}`)}
<figcaption>{cryp[s.stat].value} / {cryp[s.stat].max}</figcaption>
</figure>
+2 -2
View File
@@ -29,7 +29,7 @@ function Vbox(args) {
// lots of rubbish to make it flow nice
function boundClick(i) {
if (reclaiming) {
if (reclaiming && i) {
return sendVboxReclaim(i);
}
@@ -119,7 +119,7 @@ function Vbox(args) {
);
return (
<div className="vbox">
<div className="vbox" onClick={() => setReclaiming(false)} >
<div className="vbox-hdr">
<div>VBOX</div>
<div className="bits" >{vbox.bits}b</div>