From 847ba8423b8d80d848f11561a134511314ab0675 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Wed, 8 Apr 2020 22:58:49 +0200 Subject: [PATCH] Fix styling in Game.vue --- client/src/views/Game.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 032f625e..cab813ee 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -119,7 +119,7 @@ main ) img(src="/images/icons/rematch.svg") #playersInfo - p(v-if="isLargeScreen()") + div(v-if="isLargeScreen()") span.name(:class="{connected: isConnected(0)}") | {{ game.players[0].name || "@nonymous" }} span.time( @@ -141,7 +141,7 @@ main span.time-separator(v-if="!!virtualClocks[1][1]") : span.time-right(v-if="!!virtualClocks[1][1]") | {{ virtualClocks[1][1] }} - p(v-else) + div(v-else) span.name(:class="{connected: isConnected(0)}") | {{ game.players[0].name || "@nonymous" }} span.split-names - @@ -307,7 +307,7 @@ export default { this.send("losefocus"); }, isLargeScreen: function() { - return window.innerWidth >= 500; + return window.innerWidth >= 768; }, btnTooltipClass: function(thing) { let append = {}; @@ -1688,10 +1688,14 @@ span.separator span.name font-size: 1.5rem + @media screen and (max-width: 767px) + font-size: 1.2rem padding: 0 3px span.time font-size: 2rem + @media screen and (max-width: 767px) + font-size: 1.5rem display: inline-block .time-left margin-left: 10px -- 2.44.0