add styles for maxwidth content p in chat

This commit is contained in:
Kostya
2023-11-19 16:00:46 +03:00
parent a8198fba36
commit 1e7868f220
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
.chat {
margin: 9px 12px 0px 0px;
}
.chat__content {
@@ -31,6 +30,12 @@
font-size: 18px;
}
.content p {
width: 80%;
word-wrap: break-word;
margin: 0 auto;
}
.chat__icon {
margin-top: 10px;
margin-left: -2px;

View File

@@ -1,7 +1,7 @@
<template>
<div class="write">
<div class="write__content">
<input type="text" v-model.trim="msg" placeholder="Напишите сообщение...">
<input type="text" v-model.trim="msg" placeholder="Напишите сообщение..." maxlength="22">
<button
:disabled="CheckerforBtn()"
type="submit"

View File

@@ -54,6 +54,10 @@ export default {
}
this.array.push(MsgUser)
if(this.array.length > 7) {
this.array.shift()
}
}
}
}