make chat slightly better

master
lza_menace 2 years ago
parent 18f120257a
commit 3402dc3b64

@ -241,6 +241,9 @@
#trollbox { #trollbox {
min-width: 200px; min-width: 200px;
} }
.messageDate {
display: none;
}
} }
#trollbox ul li, #trollbox span, #trollbox a { #trollbox ul li, #trollbox span, #trollbox a {
@ -269,5 +272,5 @@
font-size: 8px; font-size: 8px;
float: right; float: right;
line-height: 1em; line-height: 1em;
padding-right: 8px;
} }

@ -593,6 +593,7 @@ function Trollbox(props) {
if (message) { if (message) {
sendJsonMessage({ sendJsonMessage({
from: props.address, from: props.address,
date: new Date(),
message message
}) })
} }
@ -628,6 +629,12 @@ function Trollbox(props) {
</a> </a>
:</span> :</span>
<span className="messageText">{message.message}</span> <span className="messageText">{message.message}</span>
<span className="messageDate">
{new Date(message.date).getMonth() + 1}/
{new Date(message.date).getDate()} @
{new Date(message.date).getUTCHours()}:
{new Date(message.date).getUTCMinutes()} UTC
</span>
</li> </li>
))} ))}
</ul> </ul>

Loading…
Cancel
Save