X-Git-Url: https://git.auder.net/images/pieces/%22%20%20V.getPpath%28board%5Bi%5D%5Bj%5D%29%20%20%20%22.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=8c1e059a15b8e258b59313394bc23ce50f6b826b;hb=7dc18cbeaba1419709afde850ac44ecc1e0c89ec;hp=8f1646f456aca6e9b9cd1892051d20ea054395de;hpb=3837d4f7885a3c3cdb468da2f3fa3fa1e5a1415a;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 8f1646f4..8c1e059a 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,72 +1,58 @@
-.card
+div
input#inputChat(type="text" :placeholder="st.tr['Type here']"
- @keyup.enter="sendChat")
- button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
- p(v-for="chat in pastChats" :class="classObject(chat)" v-html="chat.name + ': ' + chat.msg")
- p(v-for="chat in chats" :class="classObject(chat)" v-html="chat.name + ': ' + chat.msg")
+ @keyup.enter="sendChat()")
+ button(@click="sendChat()") {{ st.tr["Send"] }}
+ p(v-for="chat in chats.concat(pastChats)")
+ span.name {{ chat.name }} :
+ span(:class="classObject(chat)" v-html="chat.msg")