[PR #24161] [CLOSED] feat: add scroll to top/bottom buttons in chat component #82402

Closed
opened 2026-05-13 16:55:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24161
Author: @Yashh56
Created: 4/26/2026
Status: Closed

Base: devHead: feat/scroll


📝 Commits (1)

  • 6ea1cfe feat: add scroll to top/bottom buttons in chat component

📊 Changes

2 files changed (+84 additions, -26 deletions)

View changed files

📝 src/lib/components/chat/Chat.svelte (+21 -4)
📝 src/lib/components/chat/MessageInput.svelte (+63 -22)

📄 Description

Pull Request Checklist

Before submitting, make sure you've checked the following:

  • Target branch: Verify that the pull request targets the dev branch. PRs targeting main will be immediately closed.
  • Description: Provide a concise description of the changes made in this pull request down below.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Include reproducible steps to demonstrate the issue before the fix. Test edge cases (URL encoding, HTML entities, types). Take this as an opportunity to make screenshots of the feature/fix and include them in the PR description.
  • Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Git Hygiene: Keep PRs atomic (one logical change). Clean up commits and rebase on dev to ensure no unrelated commits (e.g. from main) are included. Push updates to the existing PR branch instead of closing and reopening.
  • Title Prefix: feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

  • This PR improves long-conversation navigation in chat by making scrolling controls more practical and less intrusive. It enables visible scrollbars in the main messages viewport and adds a Back to Top control to complement Go to Bottom. It also refines button visibility logic so controls only appear after meaningful scrolling (hidden at true bottom/top, shown when content is sufficiently out of view), reducing UI clutter while keeping fast navigation available.

Added

Screenshots or Videos

https://github.com/user-attachments/assets/6a5a6bd4-fbdd-4e90-9e91-983e58025ac9

Contributor License Agreement


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24161 **Author:** [@Yashh56](https://github.com/Yashh56) **Created:** 4/26/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/scroll` --- ### 📝 Commits (1) - [`6ea1cfe`](https://github.com/open-webui/open-webui/commit/6ea1cfed90ec8f70fa15737a43b4d08d591ce54e) feat: add scroll to top/bottom buttons in chat component ### 📊 Changes **2 files changed** (+84 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Chat.svelte` (+21 -4) 📝 `src/lib/components/chat/MessageInput.svelte` (+63 -22) </details> ### 📄 Description <!-- ⚠️ CRITICAL CHECKS FOR CONTRIBUTORS (READ, DON'T DELETE) ⚠️ 1. Target the `dev` branch. PRs targeting `main` will be automatically closed. 2. Do NOT delete the CLA section at the bottom. It is required for the bot to accept your PR. --> # Pull Request Checklist **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Verify that the pull request targets the `dev` branch. **PRs targeting `main` will be immediately closed.** - [x] **Description:** Provide a concise description of the changes made in this pull request down below. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Testing:** Perform manual tests to **verify the implemented fix/feature works as intended AND does not break any other functionality**. Include reproducible steps to demonstrate the issue before the fix. Test edge cases (URL encoding, HTML entities, types). Take this as an opportunity to **make screenshots of the feature/fix and include them in the PR description**. - [x] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Git Hygiene:** Keep PRs atomic (one logical change). Clean up commits and rebase on `dev` to ensure no unrelated commits (e.g. from `main`) are included. Push updates to the existing PR branch instead of closing and reopening. - [x] **Title Prefix:** `feat`: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description - This PR improves long-conversation navigation in chat by making scrolling controls more practical and less intrusive. It enables visible scrollbars in the main messages viewport and adds a Back to Top control to complement Go to Bottom. It also refines button visibility logic so controls only appear after meaningful scrolling (hidden at true bottom/top, shown when content is sufficiently out of view), reducing UI clutter while keeping fast navigation available. ### Added - #24133 ### Screenshots or Videos https://github.com/user-attachments/assets/6a5a6bd4-fbdd-4e90-9e91-983e58025ac9 ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-13 16:55:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#82402