limit chat message length from APISocket
fix trans style
This commit is contained in:
parent
628d338875
commit
d93a2cae1f
|
@ -177,6 +177,9 @@ export class ChatProvider {
|
||||||
channelId: number = 0,
|
channelId: number = 0,
|
||||||
sendapi: boolean = true,
|
sendapi: boolean = true,
|
||||||
) {
|
) {
|
||||||
|
if (message.length > 250) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.addMessage(name, message, country, channelId);
|
this.addMessage(name, message, country, channelId);
|
||||||
webSockets.broadcastChatMessage(name, message, country, channelId, sendapi);
|
webSockets.broadcastChatMessage(name, message, country, channelId, sendapi);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ tr:nth-child(odd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
.Overlay {
|
.Overlay {
|
||||||
background: linear-gradient(175deg, #61dcea , #ffb1e1, #ecffec, #ffb1e1, #61dcea);
|
background: linear-gradient(175deg, #61dceaab , #ffb1e1, #ecffec, #ffb1e1, #61dceaab);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatmsg {
|
.chatmsg {
|
||||||
|
@ -41,6 +41,6 @@ tr:nth-child(odd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
.Modal {
|
.Modal {
|
||||||
background: #efd9e2 none repeat scroll 0 0;;
|
background: #f4edf0 none repeat scroll 0 0;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user