fix styles

This commit is contained in:
ntr 2019-09-11 12:29:09 +10:00
parent 73ae1e083d
commit b2658d5150
2 changed files with 32 additions and 21 deletions

View File

@ -125,6 +125,7 @@ section {
"vcons game";
grid-template-columns: 1fr 1fr;
grid-template-rows: min-content 1fr;
.colour-info {
grid-area: vinfo;
@ -141,6 +142,10 @@ section {
}
}
.vbox-demo {
grid-area: vinfo;
}
.game-demo {
grid-area: game;

View File

@ -106,13 +106,19 @@ function Demo(args) {
);
}
return (
<div class="news vbox-demo">
{inventoryElement()}
</div>
);
};
const vboxConstructs = () => {
const btnClass = equipping
? 'equipping empty gray'
: 'empty gray';
return (
<div class="news">
{inventoryElement()}
<div class='construct-list'>
{players[0].constructs.map((c, i) => (
<div class="instance-construct" key={i}>
@ -133,7 +139,6 @@ function Demo(args) {
</div>
))}
</div>
</div>
);
};
@ -163,6 +168,7 @@ function Demo(args) {
return (
<section class='demo'>
{vboxDemo()}
{vboxConstructs()}
{gameDemo()}
</section>
);