3 Commits

Author SHA1 Message Date
H4CK3R-01
c45cd14b4f User can join if game is started already 2021-07-15 10:04:51 +02:00
Florian Kaiser
0062d41afd Merge pull request #75 from H4CK3R-01/mobile_design_fix
Fixed css for mobile devices
2021-07-14 23:48:30 +02:00
H4CK3R-01
8a6b676c1e Fixed css for mobile devices 2021-07-14 23:47:47 +02:00
6 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}