diff --git a/server/src/main/java/lingo/server/LingoController.java b/server/src/main/java/lingo/server/LingoController.java index ae4f85a..a422c24 100644 --- a/server/src/main/java/lingo/server/LingoController.java +++ b/server/src/main/java/lingo/server/LingoController.java @@ -123,7 +123,7 @@ public class LingoController { final Game game = new Game(player); gameById.put(game.id, game); gameByPlayer.put(player, game); - log.info("{} hosted a game", player); + log.info("{} hosted Game {}", player, game.id); send(Destinations.GAME_HOSTED, game); } @@ -198,6 +198,7 @@ public class LingoController { if (playerOne == player) { if (playerTwo == null) { // Close the game + log.info("{} closed Game {}", player, game.id); gameById.remove(game.id); send(Destinations.GAME_CLOSED, game); } else { diff --git a/server/src/main/resources/static/index.html b/server/src/main/resources/static/index.html index 95e25be..496bff6 100644 --- a/server/src/main/resources/static/index.html +++ b/server/src/main/resources/static/index.html @@ -26,14 +26,14 @@
There are no games
-
+
diff --git a/server/src/main/resources/static/style.css b/server/src/main/resources/static/style.css index 2a02748..0b4baf8 100644 --- a/server/src/main/resources/static/style.css +++ b/server/src/main/resources/static/style.css @@ -112,6 +112,7 @@ button:hover:disabled { font-size: 1em; border-width: 1px 0; border-radius: 0; + outline: none; } .list-group-item { @@ -132,6 +133,15 @@ button.list-group-item:hover { background-color: lightblue; } +button.list-group-item:disabled { + color: black; +} + +button.list-group-item:hover:disabled { + background-color: white; + cursor: default; +} + .button { width: 120px; margin-left: 10px;