X-Git-Url: https://git.auder.net/js/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=cbfb80597a9cc61ac2405705fb6d5bf2b217cc24;hb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;hp=2dc68428d5c04259cdf6d76c87c7643c10e30c8e;hpb=cd0d7743323309fcfd241ccba959df81a77970c7;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 2dc68428..cbfb8059 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,13 +1,12 @@
-.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['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")
-