summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/gui/lobby.js6
-rw-r--r--styles/client/card.css8
2 files changed, 10 insertions, 4 deletions
diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js
index c760f50..a303da8 100644
--- a/scripts/gui/lobby.js
+++ b/scripts/gui/lobby.js
@@ -193,8 +193,10 @@ class Lobby {
// { data.pass } true or false weather the game has a password
addGame (data) {
- let g = new Game(data, this.e.games);
- this.games[data.id] = g;
+ if(this.games[data.id] == null) {
+ let g = new Game(data, this.e.games);
+ this.games[data.id] = g;
+ }
}
// Called when a new public game is removed on the server
diff --git a/styles/client/card.css b/styles/client/card.css
index 9ac6f3d..7b63b41 100644
--- a/styles/client/card.css
+++ b/styles/client/card.css
@@ -18,6 +18,7 @@ card
overflow: hidden;
user-select: none;
box-sizing: border-box;
+ font-size: small;
left: calc(var(--left) / var(--scale));
top: calc(var(--top) / var(--scale));
@@ -50,6 +51,7 @@ carea.top, carea.topl, carea.topr
top: 0;
height: 8%;
text-align: center;
+ line-height: calc(0.08 * 226px);
}
carea.topl
@@ -89,6 +91,7 @@ carea.bot, carea.botl, carea.botr
bottom: 0;
height: 8%;
text-align: center;
+ line-height: calc(0.08 * 226px);
}
carea.botl
@@ -108,13 +111,14 @@ carea.all
{
top: 0;
height: 100%;
+ text-align: center;
+ line-height: 226px;
}
ctext
{
display: inline-block;
flex: 1;
- font-size: small;
height: auto;
}
@@ -128,7 +132,7 @@ cimage
card[drag=true]
{
- z-index: 3;
+ z-index: 4;
}
/* Deck */