X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=f1e1fad251a25307745933432b462efa2d26b8d1;hb=58ae6be576fb06302d70eb19815dcb71b765a8b8;hp=b4970f707052fe1a8449bc7b4955fc0db0d5df20;hpb=5c8e044f7bab43ca8573fdf631f9b87daeda3ad0;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index b4970f70..f1e1fad2 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,69 +1,67 @@
-.row
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- // TODO: Chat modal sur petit écran, dans la page pour grand écran
- .card.smallpad
- h4 Chat
- p(v-for="chat in chats" :class="classObject(chat)" v-html="chat.msg")
- input#inputChat(type="text" :placeholder="st.tr['Type here']"
- @keyup.enter="sendChat")
- button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
+div
+ input#inputChat(
+ type="text"
+ :placeholder="st.tr['Chat here']"
+ @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"
+ )
-