make chat slightly better

master
lza_menace 2 years ago
parent 18f120257a
commit 3402dc3b64

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

@ -593,6 +593,7 @@ function Trollbox(props) {
if (message) {
sendJsonMessage({
from: props.address,
date: new Date(),
message
})
}
@ -628,6 +629,12 @@ function Trollbox(props) {
</a>
:</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>
))}
</ul>

Loading…
Cancel
Save