Fix tooltips removal on smartphone
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 8 Apr 2020 18:31:28 +0000 (20:31 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 8 Apr 2020 18:31:28 +0000 (20:31 +0200)
client/src/views/Game.vue

index e8b0756..6d5a92a 100644 (file)
@@ -89,7 +89,7 @@ main
         aria-label="Chat"
       )
         img(src="/images/icons/chat.svg")
-      #actions(v-if="game.score=='*'")
+      #actions(v-show="game.score=='*'")
         button.tooltip(
           @click="clickDraw()"
           :class="{['draw-' + drawOffer]: true}"
@@ -109,7 +109,7 @@ main
         )
           img(src="/images/icons/resign.svg")
       button.tooltip(
-        v-else
+        v-show="game.score!='*'"
         @click="clickRematch()"
         :class="{['rematch-' + rematchOffer]: true}"
         :aria-label="st.tr['Rematch']"