Various fixes
[vchess.git] / client / src / components / Chat.vue
index 2dc6842..0570752 100644 (file)
@@ -1,13 +1,10 @@
 <template lang="pug">
-.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"] }}
+#chat.card
+  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"] }}
 </template>
 
 <script>
@@ -63,9 +60,11 @@ export default {
 };
 </script>
 
-<style lang="sass">
+<style lang="sass" scoped>
 .my-chatmsg
   color: grey
 .opp-chatmsg
   color: black
+#chat
+  max-width: 100%
 </style>