Mail list: a new page starts at the top
Paging while scrolled down kept the old scroll position, so clicking next dropped you into the middle of the following fifty with nothing to signal you had moved. The list is virtualized, so there is no natural anchor to reset — the scroll container has to be told. MessageList now takes the page number and scrolls back to the top when it changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018SqJYt7jD7oUEkoY68sBZo
This commit is contained in:
@@ -842,6 +842,7 @@ export function MailLayout() {
|
||||
) : (
|
||||
<MessageList
|
||||
threads={pageThreads}
|
||||
page={page}
|
||||
selectedId={threadId}
|
||||
folder={currentFolder}
|
||||
onSelect={(id) => navigate(`/mail/t/${id}`)}
|
||||
|
||||
Reference in New Issue
Block a user