summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-08-11 16:19:45 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-08-11 16:19:45 -0400
commit5cba3d84eae256cdb4fd79d6e2bed83e21f7a646 (patch)
treeb7e26c2da226dc5736b34b387c20ad7875f6e363
parent2e67661f0016874b7afbfeeb773401b94d5cefcd (diff)
css changes
-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 */