Give chat timestamp a fix width to fix message alignment issues

This commit is contained in:
Jérémie Astori 2017-10-01 01:12:08 -04:00
parent 0cc9c4166b
commit a93adcbdfa
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8
2 changed files with 6 additions and 0 deletions

View file

@ -1005,6 +1005,11 @@ kbd {
#chat .time {
color: #ddd;
padding-left: 10px;
width: 55px;
}
#chat.show-seconds .time {
width: 75px;
}
#chat .from {

View file

@ -113,6 +113,7 @@ settings.on("change", "input, select, textarea", function() {
chat.find(".msg > .time").each(function() {
$(this).text(tz($(this).parent().data("time")));
});
chat.toggleClass("show-seconds", self.prop("checked"));
} else if (name === "autocomplete") {
if (self.prop("checked")) {
$("#input").trigger("autocomplete:on");