diff --git a/client/assets/styles/instance.mobile.css b/client/assets/styles/instance.mobile.css
index d3761706..acc33451 100644
--- a/client/assets/styles/instance.mobile.css
+++ b/client/assets/styles/instance.mobile.css
@@ -61,11 +61,8 @@
}
.instance.constructs-visible .construct-list {
- display: flex;
- flex-flow: row;
- align-content: flex-end;
- height: 100%;
- margin: 0;
+ display: grid;
+ grid-auto-rows: 1fr;
}
.vbox-inventory {
@@ -88,7 +85,6 @@
}
.instance-construct {
- flex: 1;
display: grid;
grid-template-rows: min-content min-content min-content 1fr min-content;
grid-template-areas:
@@ -107,10 +103,6 @@
transition-timing-function: ease;
}
- .instance-construct .avatar {
- min-height: 150px;
- }
-
.instance-construct:first-child {
border-left-width: 0;
}
diff --git a/client/src/components/footer.jsx b/client/src/components/footer.jsx
index edad7dd2..07b3caa3 100644
--- a/client/src/components/footer.jsx
+++ b/client/src/components/footer.jsx
@@ -5,7 +5,7 @@ const { connect } = require('preact-redux');
const actions = require('./../actions');
const TeamFooter = require('./team.footer');
-const ListFooter = require('./list.footer');
+const PlayFooter = require('./play.footer');
const InstanceFooter = require('./instance.footer');
const GameFooter = require('./game.footer');
@@ -30,8 +30,8 @@ function renderHeader(args) {
if (game) return ;
if (instance) return ;
- if (nav === 'team') return ;
- if (nav === 'list') return ;
+ if (nav === 'team' || nav === 'account') return ;
+ if (nav === 'play' || nav === 'shop' || !nav) return ;
}
diff --git a/client/src/components/game.footer.jsx b/client/src/components/game.footer.jsx
index 1daa4981..40095d45 100644
--- a/client/src/components/game.footer.jsx
+++ b/client/src/components/game.footer.jsx
@@ -9,7 +9,7 @@ const addState = connect(
ws,
game,
account,
- showNav,
+ animating,
} = state;
function sendGameReady() {
@@ -24,9 +24,9 @@ const addState = connect(
return {
game,
account,
+ animating,
sendInstanceState,
sendGameReady,
- showNav,
};
},
@@ -36,15 +36,7 @@ const addState = connect(
dispatch(actions.setInstance(null));
}
- function skip() {
- dispatch(actions.setSkip(true));
- }
-
- function setShowNav(v) {
- return dispatch(actions.setShowNav(v));
- }
-
- return { setShowNav, quit, skip };
+ return { quit };
}
);
@@ -53,22 +45,13 @@ function GameFooter(props) {
const {
game,
account,
- showNav,
+ animating,
quit,
- setShowNav,
sendGameReady,
sendInstanceState,
} = props;
- if (!game) {
- return (
-
- );
- }
-
const playerTeam = game.players.find(t => t.id === account.id);
function quitClick() {
@@ -86,6 +69,7 @@ function GameFooter(props) {
const readyBtn = (