Skip to content

Commit b21a116

Browse files
committed
unify divider using 3 columns
1 parent ff22075 commit b21a116

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
@@ -567,8 +567,7 @@ window.chat.renderMsg = function(msg, nick, time, team, msgToPlayer, systemNarro
567567
}
568568

569569
window.chat.renderDivider = function(text) {
570-
var d = ' ──────────────────────────────────────────────────────────────────────────';
571-
return '<tr><td colspan="3" style="padding-top:3px"><summary>─ ' + text + d + '</summary></td></tr>';
570+
return '<tr class="divider"><td><hr></td><td>' + text + '</td><td><hr></td></tr>';
572571
};
573572

574573
// 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
@@ -319,6 +319,14 @@ em {
319319
padding-bottom: 3px;
320320
}
321321

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

0 commit comments

Comments
 (0)