mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 16:28:32 -05:00
[PR #24391] fix: source overflow "+N" badge wraps for 2-digit values #66494
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/24391
Author: @Samrj12
Created: 5/5/2026
Status: 🔄 Open
Base:
dev← Head:fix/source-overflow-badge-wrap📝 Commits (1)
ce904e1fix: prevent source overflow "+N" badge wrap for 2-digit values📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/Citations.svelte(+1 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.dev.Changelog Entry
Description
Fixed
Additional Information
Reproduction (before fix):
After fix: The badge stays on a single line for any overflow value; single-digit overflows still render as a 16×16 circle.
Implementation: One-line class change on `Citations.svelte:188`:
`min-w-4` keeps the perfect-circle look for single-digit values, `px-1` provides horizontal padding when the content grows, and `whitespace-nowrap` prevents wrapping as a defense-in-depth.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.