diff options
Diffstat (limited to 'src/components/chat/chat.vue')
| -rw-r--r-- | src/components/chat/chat.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue index 9d3ab39c..0c397472 100644 --- a/src/components/chat/chat.vue +++ b/src/components/chat/chat.vue @@ -18,7 +18,9 @@ </div> </div> <div class="chat-input"> - <input v-model="currentMessage" type="text" @keyup.enter="submit(currentMessage)"> + <form @submit.prevent="submit(currentMessage)"> + <input v-model="currentMessage" type="text" > + </form> </div> </div> </div> @@ -41,9 +43,12 @@ } .chat-input { display: flex; - input { + form { flex: auto; - margin: 0.5em; + input { + margin: 0.5em; + width: 100%; + } } } </style> |
