mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #17796] [MERGED] fix: truncate long filter tags in model selector and prevent wrapping #95590
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/17796
Author: @silentoplayz
Created: 9/26/2025
Status: ✅ Merged
Merged: 9/26/2025
Merged by: @tjbck
Base:
dev← Head:truncate-selector-tags📝 Commits (1)
b516431fix: truncate long filter tags in model selector and prevent wrapping📊 Changes
1 file changed (+15 additions, -13 deletions)
View changed files
📝
src/lib/components/chat/ModelSelector/Selector.svelte(+15 -13)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This commit addresses an issue where long filter tags at the top of the model selector dropdown were not truncated correctly and would wrap to a new line, causing layout issues.
A hard character limit of 16 characters is applied to the filter tags within the
Selector.sveltecomponent. Tags longer than 16 characters are truncated with an ellipsis (...) directly in the code. The full tag name remains available in the tooltip.The
whitespace-nowrapclass has been added to the tag container to ensure that the tags remain on a single, horizontally scrollable line.Changed
src/lib/components/chat/ModelSelector/Selector.svelteare now truncated to 16 characters with an ellipsis if they exceed the limit.whitespace-nowrapto prevent wrapping.Fixed
Additional Information
Screenshots or Videos
Before the fix applied:

After the fix is applied:

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.