X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=b4970f707052fe1a8449bc7b4955fc0db0d5df20;hb=5c8e044f7bab43ca8573fdf631f9b87daeda3ad0;hp=364f574ca7f9670d4f36b5c728bbd42652c78832;hpb=f21cd6d9c23da37d729f20ea4c08e56b1a7b10a1;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 364f574c..b4970f70 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,69 +1,69 @@
-div
- div
+.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={
- "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']"
+ 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"] }}
+
+