[PR #13736] [MERGED] enh: Improve visibility of overflow / hidden tools when more than 3 are present #38903

Closed
opened 2026-04-25 11:42:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/13736
Author: @taylorwilsdon
Created: 5/9/2025
Status: Merged
Merged: 5/10/2025
Merged by: @tjbck

Base: devHead: ideas/13702


📝 Commits (3)

  • ccbc46f implement visible scrollbar for tools overflow, add show all toggle
  • 628a10e make the collapse toggle more subtle & compact
  • 1299c11 only show tools toggle if overflow present

📊 Changes

1 file changed (+23 additions, -2 deletions)

View changed files

📝 src/lib/components/chat/MessageInput/InputMenu.svelte (+23 -2)

📄 Description

Pull Request Checklist

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

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • 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?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

Discussions thread:
https://github.com/open-webui/open-webui/discussions/13702

  • Enhanced the tool menu in the chat input (src/lib/components/chat/MessageInput/InputMenu.svelte) to improve discoverability of tools when more than three are present. Previously, overflow was hidden without a consistently visible scrollbar, making it difficult for users to find additional tools without specific mouse/trackpad actions. This change introduces a persistent scrollbar for overflow and a toggle to show all tools.

Added

Changed

  • The tools list container div in src/lib/components/chat/MessageInput/InputMenu.svelte now dynamically applies or removes the max-h-28 class based on the showAllTools state variable, controlled by the new toggle button.
  • The toggle button uses the same SVG chevron icon that chat collapse on the sidebar uses and rotates 180 degrees to visually indicate the expanded or collapsed state.
  • The SVG icon for the toggle button in src/lib/components/chat/MessageInput/InputMenu.svelte is styled with text-gray-300 dark:text-gray-600 to match the chat collapse.

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • Improved usability for discovering tools in the input menu when the number of tools exceeds the default visible limit.
  • Addressed the issue where users without a scroll wheel/trackpad might struggle to reveal overflowing tools.

Security

  • N/A

Breaking Changes

  • N/A

Additional Information

  • These changes aim to directly address user feedback regarding the difficulty of finding tools when the list overflows. The solution provides both a visual cue (scrollbar) and an explicit control (toggle button) for managing the display of tools.
  • No new dependencies were added.
  • No documentation changes are required for this UI enhancement.
    https://github.com/open-webui/open-webui/discussions/13702

Screenshots or Videos

When more than 3 tools present:
Usage video:
https://github.com/user-attachments/assets/cae67e1f-3c3b-490e-ace2-15e1b8000194
Screenshot:
image

When 3 or fewer (retains original):
image

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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/13736 **Author:** [@taylorwilsdon](https://github.com/taylorwilsdon) **Created:** 5/9/2025 **Status:** ✅ Merged **Merged:** 5/10/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `ideas/13702` --- ### 📝 Commits (3) - [`ccbc46f`](https://github.com/open-webui/open-webui/commit/ccbc46fbbeb09e7a143a7a13d210982064a58ddf) implement visible scrollbar for tools overflow, add show all toggle - [`628a10e`](https://github.com/open-webui/open-webui/commit/628a10e34adf89c9ca9f6bf6bb8dcc31cbdab613) make the collapse toggle more subtle & compact - [`1299c11`](https://github.com/open-webui/open-webui/commit/1299c11650300036ea9463932a8a2a9499e98183) only show tools toggle if overflow present ### 📊 Changes **1 file changed** (+23 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/MessageInput/InputMenu.svelte` (+23 -2) </details> ### 📄 Description # Pull Request Checklist **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [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] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests to validate the changes? - [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] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description Discussions thread: https://github.com/open-webui/open-webui/discussions/13702 - Enhanced the tool menu in the chat input ([`src/lib/components/chat/MessageInput/InputMenu.svelte`](src/lib/components/chat/MessageInput/InputMenu.svelte:0)) to improve discoverability of tools when more than three are present. Previously, overflow was hidden without a consistently visible scrollbar, making it difficult for users to find additional tools without specific mouse/trackpad actions. This change introduces a persistent scrollbar for overflow and a toggle to show all tools. ### Added - A persistently visible scrollbar (using `scrollbar-thin` class) to the tools list container within [`src/lib/components/chat/MessageInput/InputMenu.svelte`](src/lib/components/chat/MessageInput/InputMenu.svelte:106) when its content overflows. - A toggle button (chevron SVG icon) below the tools list in [`src/lib/components/chat/MessageInput/InputMenu.svelte`](src/lib/components/chat/MessageInput/InputMenu.svelte:145) to expand or collapse the list, allowing users to view all available tools or a compact list (max 3 visible by default). ### Changed - The tools list container `div` in [`src/lib/components/chat/MessageInput/InputMenu.svelte`](src/lib/components/chat/MessageInput/InputMenu.svelte:106) now dynamically applies or removes the `max-h-28` class based on the `showAllTools` state variable, controlled by the new toggle button. - The toggle button uses the same SVG chevron icon that chat collapse on the sidebar uses and rotates 180 degrees to visually indicate the expanded or collapsed state. - The SVG icon for the toggle button in [`src/lib/components/chat/MessageInput/InputMenu.svelte`](src/lib/components/chat/MessageInput/InputMenu.svelte:158) is styled with `text-gray-300 dark:text-gray-600` to match the chat collapse. ### Deprecated - N/A ### Removed - N/A ### Fixed - Improved usability for discovering tools in the input menu when the number of tools exceeds the default visible limit. - Addressed the issue where users without a scroll wheel/trackpad might struggle to reveal overflowing tools. ### Security - N/A ### Breaking Changes - N/A --- ### Additional Information - These changes aim to directly address user feedback regarding the difficulty of finding tools when the list overflows. The solution provides both a visual cue (scrollbar) and an explicit control (toggle button) for managing the display of tools. - No new dependencies were added. - No documentation changes are required for this UI enhancement. https://github.com/open-webui/open-webui/discussions/13702 ### Screenshots or Videos When more than 3 tools present: **Usage video:** https://github.com/user-attachments/assets/cae67e1f-3c3b-490e-ace2-15e1b8000194 Screenshot: <img width="764" alt="image" src="https://github.com/user-attachments/assets/c5982417-bf63-4fdb-ba61-6c351083b08f" /> When 3 or fewer (retains original): <img width="929" alt="image" src="https://github.com/user-attachments/assets/71a21e54-8f50-45af-90e8-10df23ef0cd1" /> ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/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-04-25 11:42:37 -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#38903