Screen sizes now work on Android browser
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
b94fe95765
commit
b2574cc9d4
@ -1,8 +1,10 @@
|
|||||||
.Table {
|
.Table {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
align-self: stretch;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
|
min-height: 100%;
|
||||||
justify-content: space-between; /* left-justify 'board', right-justify 'game' */
|
justify-content: space-between; /* left-justify 'board', right-justify 'game' */
|
||||||
background-image: url("./assets/tabletop.png");
|
background-image: url("./assets/tabletop.png");
|
||||||
}
|
}
|
||||||
|
@ -826,7 +826,7 @@ class Table extends React.Component {
|
|||||||
|
|
||||||
updateGame(game) {
|
updateGame(game) {
|
||||||
if (this.state.signature !== game.signature) {
|
if (this.state.signature !== game.signature) {
|
||||||
game.signature = game.signature;
|
this.setState( { signature: game.signature });
|
||||||
}
|
}
|
||||||
// console.log("Update Game", game);
|
// console.log("Update Game", game);
|
||||||
this.setState( { game: game });
|
this.setState( { game: game });
|
||||||
|
@ -115,7 +115,7 @@ const Trade = ({table}) => {
|
|||||||
tmp[get.type] = get.count;
|
tmp[get.type] = get.count;
|
||||||
});
|
});
|
||||||
setGets(tmp);
|
setGets(tmp);
|
||||||
}, [giveCount, getCount, setGives, setGets]);
|
}, [giveCount, getCount, setGives, setGets, table]);
|
||||||
|
|
||||||
if (!table.game) {
|
if (!table.game) {
|
||||||
return (<></>);
|
return (<></>);
|
||||||
|
@ -4,8 +4,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
html {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||||
sans-serif;
|
sans-serif;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user