From c7890776f93fed482a31e235d1d5331d390f151c Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 28 Feb 2021 22:01:40 -0700 Subject: [PATCH] Adjust button positioning in lobby and add a button randomization --- web/src/views/Lobby.vue | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/web/src/views/Lobby.vue b/web/src/views/Lobby.vue index 4755566..af8afff 100644 --- a/web/src/views/Lobby.vue +++ b/web/src/views/Lobby.vue @@ -24,9 +24,9 @@
+
+
@@ -61,6 +67,9 @@ export default { gameCode() { return this.$store.state.game_code; }, + canRandomize() { + return this.$store.state.is_host; + }, }, methods: { copySuccess() { @@ -92,7 +101,12 @@ export default { startGame() { this.$socket.client.emit(`StartGame`, { game_code: this.gameCode - }) + }); + }, + randomizeTeams() { + this.$socket.client.emit(`RandomizeTeams`, { + game_code: this.gameCode + }); }, }, sockets: { @@ -126,6 +140,7 @@ export default { justify-content: center; align-items: stretch; display: flex; + flex-wrap: wrap; } button { @@ -139,4 +154,10 @@ button { } button:hover { background-color: var(--background2-darken); } button:focus { background-color: var(--background2-lighten); } + + +div.new-line { + width: 100% !important; + height: 0px; +} \ No newline at end of file