Merge pull request #1597 from thelounge/astorije/fix-time-width
Give chat timestamp a fix width to fix message alignment issues
This commit is contained in:
commit
50d49a2ec2
@ -1005,6 +1005,11 @@ kbd {
|
|||||||
#chat .time {
|
#chat .time {
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
width: 55px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#chat.show-seconds .time {
|
||||||
|
width: 75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#chat .from {
|
#chat .from {
|
||||||
|
@ -113,6 +113,7 @@ settings.on("change", "input, select, textarea", function() {
|
|||||||
chat.find(".msg > .time").each(function() {
|
chat.find(".msg > .time").each(function() {
|
||||||
$(this).text(tz($(this).parent().data("time")));
|
$(this).text(tz($(this).parent().data("time")));
|
||||||
});
|
});
|
||||||
|
chat.toggleClass("show-seconds", self.prop("checked"));
|
||||||
} else if (name === "autocomplete") {
|
} else if (name === "autocomplete") {
|
||||||
if (self.prop("checked")) {
|
if (self.prop("checked")) {
|
||||||
$("#input").trigger("autocomplete:on");
|
$("#input").trigger("autocomplete:on");
|
||||||
|
Loading…
Reference in New Issue
Block a user