mobile menu fixes
This commit is contained in:
parent
15fc22fd68
commit
a28898cd82
@ -94,11 +94,21 @@
|
|||||||
"games";
|
"games";
|
||||||
}
|
}
|
||||||
|
|
||||||
.options {
|
.menu {
|
||||||
flex-flow: row wrap;
|
.options {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
|
||||||
button {
|
button:not(:last-child) {
|
||||||
flex: 1;
|
border: 2px solid #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.logo {
|
||||||
|
border: none;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-top: 0.5em;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,4 +117,10 @@
|
|||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.account {
|
||||||
|
div {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,6 @@ const addState = connect(
|
|||||||
function receiveState(state) {
|
function receiveState(state) {
|
||||||
const {
|
const {
|
||||||
teamSelect,
|
teamSelect,
|
||||||
showNav,
|
|
||||||
ws,
|
ws,
|
||||||
} = state;
|
} = state;
|
||||||
|
|
||||||
@ -18,32 +17,18 @@ const addState = connect(
|
|||||||
return {
|
return {
|
||||||
sendAccountSetTeam,
|
sendAccountSetTeam,
|
||||||
teamSelect,
|
teamSelect,
|
||||||
showNav,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
function receiveDispatch(dispatch) {
|
|
||||||
|
|
||||||
function setShowNav(v) {
|
|
||||||
return dispatch(actions.setShowNav(v));
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
setShowNav,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
function TeamFooter(args) {
|
function TeamFooter(args) {
|
||||||
const {
|
const {
|
||||||
showNav,
|
|
||||||
teamSelect,
|
teamSelect,
|
||||||
sendAccountSetTeam,
|
sendAccountSetTeam,
|
||||||
setShowNav,
|
|
||||||
} = args;
|
} = args;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer>
|
<footer>
|
||||||
<button id="nav-btn" onClick={() => setShowNav(!showNav)} >☰</button>
|
|
||||||
<button
|
<button
|
||||||
disabled={teamSelect.some(c => !c)}
|
disabled={teamSelect.some(c => !c)}
|
||||||
onClick={sendAccountSetTeam}>
|
onClick={sendAccountSetTeam}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user