mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22536] [CLOSED] feat: content-aware scroll-to-bottom button #49791
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/22536
Author: @jannikstdl
Created: 3/10/2026
Status: ❌ Closed
Base:
dev← Head:feat/scroll-button-content-aware📝 Commits (1)
02fff90feat: content-aware scroll-to-bottom button📊 Changes
1 file changed (+28 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+28 -2)📄 Description
The scroll-to-bottom button currently uses the
autoScrollflag to decide when to show up. That flag can toggle too early in some cases, making the button flash on when everything is still visible on screen.This changes it to check the actual DOM position of the content end. If the last message is below the viewport, the button shows. If not, it stays hidden. Falls back to the old
autoScrollbehavior when the#messages-bottommarker isn't present.Note: The full benefit of this PR only kicks in when #22535 is also merged, since that PR adds the
#messages-bottommarker. Without it, this falls back to the existingautoScrollflag behavior, which works fine on its own but doesn't give the improved accuracy.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.