Compare commits
3 Commits
4eb1fed
...
fix_backen
Author | SHA1 | Date | |
---|---|---|---|
|
c45cd14b4f | ||
|
0062d41afd | ||
|
8a6b676c1e |
@@ -53,7 +53,7 @@ class Game {
|
||||
}
|
||||
|
||||
add_player(name) {
|
||||
let canAddPlayer = this.players.length < Game.MAX_PLAYERS;
|
||||
let canAddPlayer = this.players.length < Game.MAX_PLAYERS && this.currentStatus === Game.STATUS.SETTING_UP;
|
||||
if (canAddPlayer) this.players.push(new Player(name));
|
||||
return canAddPlayer;
|
||||
}
|
||||
|
@@ -103,7 +103,7 @@
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
@media only screen and (max-width: 980px) {
|
||||
#chat {
|
||||
flex-flow: column-reverse;
|
||||
border-top: #7d7d7d solid 2px;
|
||||
|
@@ -101,7 +101,7 @@ main {
|
||||
height: calc(100% - 50px);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
@media only screen and (max-width: 980px) {
|
||||
#main {
|
||||
display: grid;
|
||||
grid-template-columns: unset;
|
||||
|
@@ -28,7 +28,7 @@
|
||||
background-color: #FFDDA1;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
@media only screen and (max-width: 980px) {
|
||||
#game {
|
||||
height: auto;
|
||||
width: auto;
|
||||
|
@@ -45,7 +45,7 @@ header {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
@media only screen and (max-width: 980px) {
|
||||
header {
|
||||
height: 5em;
|
||||
|
||||
|
@@ -54,7 +54,7 @@
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
@media only screen and (max-width: 980px) {
|
||||
#login {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
Reference in New Issue
Block a user