Easier to see where people chat from

This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-11 14:39:22 +02:00
parent ec2ea167b3
commit 80c37d9cba
4 changed files with 12 additions and 3 deletions

View File

@@ -121,6 +121,11 @@
height:calc(100vh - 48px - 64px) !important; height:calc(100vh - 48px - 64px) !important;
} }
.channel-info-all-chat {
color: lightgrey;
font-size: 0.75rem;
}
#chatForm { #chatForm {
padding-left: 14px; padding-left: 14px;
} }
@@ -331,6 +336,10 @@ li.disabled span {
margin-left: 0px; margin-left: 0px;
} }
#chatchannel li span, #chatall li span {
padding-right: 1px;
}
#closePlayer{ #closePlayer{
position: fixed; position: fixed;
bottom: 175px; bottom: 175px;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -119,7 +119,7 @@ var Chat = {
var color_temp = Helper.rgbToHsl([color.r, color.g, color.b], false); var color_temp = Helper.rgbToHsl([color.r, color.g, color.b], false);
var _time = new Date(); var _time = new Date();
var time = Helper.pad(_time.getHours()) + ":" + Helper.pad(_time.getMinutes()); var time = Helper.pad(_time.getHours()) + ":" + Helper.pad(_time.getMinutes());
$("#chatall").append("<li title='"+inp.channel+"''><span class='time_color'>" + time + "</span> <span style='color:"+color_temp+";'>"+inp.from+"</span></li>"); $("#chatall").append("<li title='"+inp.channel+"''><span class='time_color'>" + time + "</span> <span style='color:"+color_temp+";'>"+inp.from+"</span><span class='channel-info-all-chat'> " + inp.channel + " </span></li>");
var in_text = document.createTextNode(inp.msg); var in_text = document.createTextNode(inp.msg);
$("#chatall li:last")[0].appendChild(in_text); $("#chatall li:last")[0].appendChild(in_text);
document.getElementById("chatall").scrollTop = document.getElementById("chatall").scrollHeight; document.getElementById("chatall").scrollTop = document.getElementById("chatall").scrollHeight;