forked from ppfun/pixelplanet
fix chat linebreaks
This commit is contained in:
parent
7614d5366b
commit
74ee0483d3
|
@ -25,7 +25,6 @@ function ChatMessage({
|
|||
className += ' greentext';
|
||||
}
|
||||
|
||||
let pinged = false;
|
||||
return (
|
||||
<p className="chatmsg">
|
||||
{
|
||||
|
@ -68,12 +67,6 @@ function ChatMessage({
|
|||
} if (type === 'c') {
|
||||
return (<a href={`./${txt}`}>{txt}</a>);
|
||||
} if (type === 'p') {
|
||||
if (!pinged) {
|
||||
pinged = true;
|
||||
// TODO notify of ping
|
||||
// ahmm. does that do this on every rerender? :peepowerid:
|
||||
// better put nameRegexp in the store or something
|
||||
}
|
||||
return (
|
||||
<span
|
||||
className="ping"
|
||||
|
|
|
@ -396,6 +396,9 @@ tr:nth-child(even) {
|
|||
user-select: text;
|
||||
margin: 0;
|
||||
}
|
||||
.chatmsg > span {
|
||||
display: inline-block;
|
||||
}
|
||||
.msg.info {
|
||||
color: #cc0000;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user