mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #23518] [MERGED] fix: remove capitalize class from terminal menu selected label #50281
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/23518
Author: @silentoplayz
Created: 4/8/2026
Status: ✅ Merged
Merged: 4/8/2026
Merged by: @tjbck
Base:
dev← Head:fix/terminal-menu-label-capitalize📝 Commits (1)
ebbbedbfix(ui): remove capitalize class from terminal menu selected label📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/TerminalMenu.svelte(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
The Terminal Menu button in the chat input bar (far-right side) incorrectly applied the Tailwind
capitalizeutility class to the label<span>that displays the currently selected terminal. This caused domain-based terminal URLs (e.g.,terminal.g30ui.xyz) to have their first character uppercased by the browser's CSS engine, rendering asTerminal.G30ui.Xyz. The fix removes thecapitalizeclass so that all terminal label text — whether a custom name or a stripped URL — is rendered exactly as stored, with no CSS-forced capitalization.Fixed
TerminalMenu.svelte: Removed thecapitalizeTailwind class from the selected-terminal label<span>in the chat input toolbar. Domain-name labels (e.g.,terminal.example.com) are no longer incorrectly title-cased toTerminal.example.com.Additional Information
capitalizeclass appliestext-transform: capitalizevia CSS, which uppercases the very first character of the rendered text node. Because the fallback label is derived from the raw URL (protocol stripped via.replace(/^https?:\/\//, '')), any domain beginning with a letter — which is virtually all of them — was visually mangled.selectedLabelis unchanged.-capitalizeremoved).Screenshots or Videos
Before:
After:
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.