From 56c40600596cc772f86034808ddcb2cbaab35570 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 28 May 2020 18:27:33 +0200 Subject: [PATCH] Always show challenge button in Hall, colored if focused --- client/src/views/Hall.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 5b537d85..4e1e54b8 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -128,7 +128,8 @@ main ) | {{ st.tr["Observe"] }} button.player-action( - v-else-if="isFocusedOnHall(sid)" + v-else-if="st.user.sid != sid" + :class="{focused: isFocusedOnHall(sid)}" @click="challenge(sid)" ) | {{ st.tr["Challenge"] }} @@ -1415,6 +1416,8 @@ div#peopleWrap > .card button.player-action margin-left: 32px + &.focused + background-color: #E6D271 .somethingnew background-color: #90C4EC !important -- 2.44.0