mobile game styling fix

This commit is contained in:
Mashy 2019-11-25 20:11:48 +10:00
parent 490216fb01
commit 4dbbb4f38d
4 changed files with 14 additions and 6 deletions

View File

@ -36,6 +36,10 @@
div:nth-child(4n) {
margin: 0 0.25em;
}
div {
padding: 0 0.25em;
}
}
.team, #targeting, .resolving-skill {
@ -61,12 +65,11 @@
}
.skills {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr 1fr 1fr;
display: flex;
button {
font-size: 1em;
letter-spacing: 0.1em;
margin-right: 0;
}
@ -83,6 +86,7 @@
}
.player {
width: calc(90%);
.game-construct {
grid-template-areas:
"left"
@ -99,7 +103,12 @@
}
}
.resolving-skill {
width: calc(90%);
}
.opponent {
width: calc(90%);
.game-construct {
grid-template-rows: 2fr min-content;
grid-template-rows: 1fr;

View File

@ -108,12 +108,9 @@ class Vbox extends preact.Component {
player,
tutorial,
instance,
vboxCombiner,
vboxHighlight,
vboxInfo,
vboxSelected,
// Static
itemInfo,
// Function Calls

View File

@ -191,6 +191,7 @@ function registerEvents(store) {
store.dispatch(actions.setItemUnequip([]));
store.dispatch(actions.setVboxCombiner(null));
store.dispatch(actions.setVboxHighlight(null));
store.dispatch(actions.setVboxInfo(null));
store.dispatch(actions.setVboxSelected({ storeSelect: [], stashSelect: [] }));
}

View File

@ -206,6 +206,7 @@ function createSocket(events) {
function clearTutorial(instanceId) {
events.clearTutorial();
events.clearInstance();
sendInstanceState(instanceId);
}