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

View File

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

View File

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

View File

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