Skip to content

Commit 36b3496

Browse files
committed
unify divider using 3 columns
1 parent 21aebe0 commit 36b3496

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

core/code/chat.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,7 @@ window.chat.renderMsg = function(msg, nick, time, team, msgToPlayer, systemNarro
577577
}
578578

579579
window.chat.renderDivider = function(text) {
580-
var d = ' ──────────────────────────────────────────────────────────────────────────';
581-
return '<tr><td colspan="3" style="padding-top:3px"><summary>─ ' + text + d + '</summary></td></tr>';
580+
return '<tr class="divider"><td><hr></td><td>' + text + '</td><td><hr></td></tr>';
582581
};
583582

584583
// renders data from the data-hash to the element defined by the given

core/style.css

+8
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,14 @@ em {
317317
padding-bottom: 3px;
318318
}
319319

320+
#chat .divider {
321+
color: #bbb;
322+
}
323+
324+
#chat .divider td:nth-child(2) {
325+
text-align: center;
326+
}
327+
320328
/* time */
321329
#chat td:first-child, #chatinput td:first-child {
322330
width: 44px;

0 commit comments

Comments
 (0)