1
0

Screen sizes now work on Android browser

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-02-26 16:55:37 -08:00
parent b94fe95765
commit b2574cc9d4
4 changed files with 16 additions and 4 deletions

View File

@ -1,8 +1,10 @@
.Table {
display: flex;
position: absolute;
align-self: stretch;
width: 100%;
height: 100%;
height: 100vh;
min-height: 100%;
justify-content: space-between; /* left-justify 'board', right-justify 'game' */
background-image: url("./assets/tabletop.png");
}

View File

@ -826,7 +826,7 @@ class Table extends React.Component {
updateGame(game) {
if (this.state.signature !== game.signature) {
game.signature = game.signature;
this.setState( { signature: game.signature });
}
// console.log("Update Game", game);
this.setState( { game: game });

View File

@ -115,7 +115,7 @@ const Trade = ({table}) => {
tmp[get.type] = get.count;
});
setGets(tmp);
}, [giveCount, getCount, setGives, setGets]);
}, [giveCount, getCount, setGives, setGets, table]);
if (!table.game) {
return (<></>);

View File

@ -4,8 +4,18 @@
}
}
body {
html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;