mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #22535] [CLOSED] feat: scroll user message to top of viewport on send #42372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22535
Author: @jannikstdl
Created: 3/10/2026
Status: ❌ Closed
Base:
dev← Head:feat/scroll-to-top📝 Commits (1)
bf335bbfeat: scroll user message to top of viewport on send📊 Changes
3 files changed (+75 additions, -29 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+40 -16)📝
src/lib/components/chat/MessageInput.svelte(+4 -5)📝
src/lib/components/chat/Messages.svelte(+31 -8)📄 Description
When you send a message, the user message now scrolls to the top of the viewport and stays there while the response streams in below. Makes it much easier to keep track of what you asked, especially with longer prompts. Same thing happens on regenerate.
Under the hood this adds a
#messages-bottommarker after the message list with a permanent spacer below it. All scroll-to-bottom and at-bottom detection now uses this marker instead ofscrollHeight, so "end of messages" and "end of scrollable area" are properly separated.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.