various fixes

This commit is contained in:
MathMan05 2025-04-10 15:36:12 -05:00
parent 93a5bfd392
commit df82ca27d1
3 changed files with 4 additions and 6 deletions

View file

@ -78,6 +78,8 @@ class Direct extends Guild {
return ddiv;
}
noChannel(addstate: boolean) {
const ghostMessages = document.getElementById("ghostMessages");
if (ghostMessages) ghostMessages.innerHTML = "";
if (addstate) {
history.pushState([this.id, undefined], "", "/channels/" + this.id);
}

View file

@ -1044,12 +1044,7 @@ function formatTime(date: Date) {
} else if (datestring === yesterdayStr) {
return I18n.getTranslation("yesterdayAt", formatTime(date));
} else {
return I18n.getTranslation(
"otherAt",
formatTime(date),
date.toLocaleDateString(),
formatTime(date),
);
return I18n.getTranslation("otherAt", date.toLocaleDateString(), formatTime(date));
}
}
let tomorrow = 0;

View file

@ -1187,6 +1187,7 @@ span.instanceStatus {
flex: 1;
max-height: fit-content;
flex-basis: auto;
flex-grow: 0;
}
.scroller {
flex: 1;