Yet more slight logview improvements
This commit is contained in:
parent
38daecd61f
commit
6a618da809
|
@ -47,7 +47,6 @@
|
||||||
|
|
||||||
.channel {
|
.channel {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-right: 0.4em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timestamp {
|
.timestamp {
|
||||||
|
@ -191,7 +190,8 @@ const actions = {
|
||||||
return { URL: ev.target.value }
|
return { URL: ev.target.value }
|
||||||
},
|
},
|
||||||
channelInput: ev => (state, actions) => {
|
channelInput: ev => (state, actions) => {
|
||||||
return { channel: ev.target.value }
|
const val = ev.target.value;
|
||||||
|
return { channel: parseFloat(val) || val }
|
||||||
},
|
},
|
||||||
addMessage: m => state => ({ messages: push(state.messages, m) }),
|
addMessage: m => state => ({ messages: push(state.messages, m) }),
|
||||||
messageInput: ev => (state, actions) => {
|
messageInput: ev => (state, actions) => {
|
||||||
|
@ -243,7 +243,7 @@ const viewMessage = m => {
|
||||||
if (data.channel) {
|
if (data.channel) {
|
||||||
const color = intToHSL(getHash(data.channel.toString()))
|
const color = intToHSL(getHash(data.channel.toString()))
|
||||||
const style = "color: " + color;
|
const style = "color: " + color;
|
||||||
children.push([ "span", { ...cls("channel"), style }, data.channel.toString() ])
|
children.push([ "span", { ...cls("channel"), style }, data.channel.toString() + " " ])
|
||||||
}
|
}
|
||||||
if (data.message) {
|
if (data.message) {
|
||||||
let text = JSON.stringify(data.message, null, "\t");
|
let text = JSON.stringify(data.message, null, "\t");
|
||||||
|
|
Loading…
Reference in New Issue