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; return ddiv;
} }
noChannel(addstate: boolean) { noChannel(addstate: boolean) {
const ghostMessages = document.getElementById("ghostMessages");
if (ghostMessages) ghostMessages.innerHTML = "";
if (addstate) { if (addstate) {
history.pushState([this.id, undefined], "", "/channels/" + this.id); history.pushState([this.id, undefined], "", "/channels/" + this.id);
} }

View file

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

View file

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