X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=2dc68428d5c04259cdf6d76c87c7643c10e30c8e;hb=cd0d7743323309fcfd241ccba959df81a77970c7;hp=fcdfc840de6a1b4adf04444ac3b5f5095cd4af26;hpb=cf2343cee5729c011770ace6d5b4f79d1ac3a2b6;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index fcdfc840..2dc68428 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,71 +1,71 @@
-div
- input#modalChat.modal(type="checkbox")
- div(role="dialog")
+.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
- label#closeChat.modal-close(for="modalChat")
- p(v-for="chat in chats" :class={
- "my-chatmsg": "chat.uid==user.id",
- "opp-chatmsg": "opponents.any(o => o.id == chat.uid)"}
- v-html="chat.msg")
- input#inputChat(type="text" placeholder="st.tr['Type here']"
+ 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"] }}
+
+