diff --git a/client/assets/styles/menu.less b/client/assets/styles/menu.less index ae997377..03a2334c 100644 --- a/client/assets/styles/menu.less +++ b/client/assets/styles/menu.less @@ -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; diff --git a/client/src/components/demo.jsx b/client/src/components/demo.jsx index 9452584d..b07d84de 100644 --- a/client/src/components/demo.jsx +++ b/client/src/components/demo.jsx @@ -106,33 +106,38 @@ function Demo(args) { ); } + return ( +
+ {inventoryElement()} +
+ ); + }; + + const vboxConstructs = () => { const btnClass = equipping ? 'equipping empty gray' : 'empty gray'; return ( -
- {inventoryElement()} -
- {players[0].constructs.map((c, i) => ( -
-

{c.name}

- -
- {i === 0 && equipped - ? - : - } - - -
-
-
-
-
+
+ {players[0].constructs.map((c, i) => ( +
+

{c.name}

+ +
+ {i === 0 && equipped + ? + : + } + +
- ))} -
+
+
+
+
+
+ ))}
); }; @@ -163,6 +168,7 @@ function Demo(args) { return (
{vboxDemo()} + {vboxConstructs()} {gameDemo()}
);