fix chat linebreaks

This commit is contained in:
HF 2020-05-13 01:55:07 +02:00
parent 7614d5366b
commit 74ee0483d3
2 changed files with 3 additions and 7 deletions

View File

@ -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"

View File

@ -396,6 +396,9 @@ tr:nth-child(even) {
user-select: text;
margin: 0;
}
.chatmsg > span {
display: inline-block;
}
.msg.info {
color: #cc0000;
}