mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #22533] [CLOSED] feat: improve chat scroll readability #65597
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/22533
Author: @jannikstdl
Created: 3/10/2026
Status: ❌ Closed
Base:
dev← Head:feat/scroll-to-top📝 Commits (1)
24bdd97feat: scroll user message to top of viewport on send📊 Changes
3 files changed (+102 additions, -31 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+40 -16)📝
src/lib/components/chat/MessageInput.svelte(+31 -7)📝
src/lib/components/chat/Messages.svelte(+31 -8)📄 Description
Two changes to how scrolling works during chat:
Scroll user message to top on send - when you send a message, the user message gets scrolled to the top of the viewport and stays there while the response streams in below. Makes it easier to keep track of what you asked, especially with longer prompts. Same thing happens on regenerate.
Smarter scroll-to-bottom button - the button now checks if content has actually grown past the bottom of the viewport before showing up. Previously it would appear right away after sending even though everything was still visible.
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 logic uses this marker instead ofscrollHeight, so "end of messages" and "end of scrollable area" are properly separated.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.