css fixes and removed long info componenents

This commit is contained in:
Mashy
2019-05-14 01:31:49 +10:00
parent 76a3ddc08e
commit af050143df
2 changed files with 28 additions and 31 deletions
+6 -5
View File
@@ -169,7 +169,7 @@ function Info(args) {
const filteredCombos = vboxInfo.combos
.filter(combo => combiner.every(u => u === null
|| combo.units.includes(player.vbox.bound[u])));
if (filteredCombos.length > 6) return false;
return (
<table>
<tbody>
@@ -183,11 +183,12 @@ function Info(args) {
</table>
);
}
const vboxCombos = vboxInfo.combos.filter(c => c.units.includes(info[1]));
if (vboxCombos.length > 6) return false;
return (
<table>
<tbody>
{vboxInfo.combos.filter(c => c.units.includes(info[1])).map((c, i) =>
{vboxCombos.map((c, i) =>
<tr key={i} >
<td className="highlight" >{convertVar(c.var)}</td>
{c.units.map((u, j) => <td key={j} >{convertVar(u)}</td>)}
@@ -206,12 +207,12 @@ function Info(args) {
return (
<div className={classes} >
<InfoCryp />
<CrypVar />
<Combos />
<ScoreBoard />
</div>
);
}
// <InfoCryp /> not required anymore
// <ScoreBoard /> Takes up too much space maybe a context switch
module.exports = Info;