limit chat message length from APISocket

fix trans style
This commit is contained in:
HF 2020-05-17 13:12:41 +02:00
parent 628d338875
commit d93a2cae1f
2 changed files with 5 additions and 2 deletions

View File

@ -177,6 +177,9 @@ export class ChatProvider {
channelId: number = 0,
sendapi: boolean = true,
) {
if (message.length > 250) {
return;
}
this.addMessage(name, message, country, channelId);
webSockets.broadcastChatMessage(name, message, country, channelId, sendapi);
}

View File

@ -16,7 +16,7 @@ tr:nth-child(odd) {
}
.Overlay {
background: linear-gradient(175deg, #61dcea , #ffb1e1, #ecffec, #ffb1e1, #61dcea);
background: linear-gradient(175deg, #61dceaab , #ffb1e1, #ecffec, #ffb1e1, #61dceaab);
}
.chatmsg {
@ -41,6 +41,6 @@ tr:nth-child(odd) {
}
.Modal {
background: #efd9e2 none repeat scroll 0 0;;
background: #f4edf0 none repeat scroll 0 0;
border-radius: 10px;
}