fix(frontend): a filter written to the url survives another url write, the chat picked with alt and arrows stays in view

This commit is contained in:
hh committed 2026-10-19 05:26:20 +00:00
1 parent 8a1723e99f
commit e977ab77a8
2 files changed
+26 -6

No files matched your search

@@ -83,6 +83,11 @@
if (index === -1 || viewport === null) {
return;
}
const row = viewport.querySelector<HTMLElement>(".Chat.selected");
if (row) {
row.scrollIntoView({ block: "nearest" });
return;
}
const top = index * rowHeight;
if (top < viewport.scrollTop) {
viewport.scrollTop = top;