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