Fix: username line break in SharedBadge component#13783
Closed
SyedShahmeerAli12 wants to merge 2 commits intoinfiniflow:mainfrom
Closed
Fix: username line break in SharedBadge component#13783SyedShahmeerAli12 wants to merge 2 commits intoinfiniflow:mainfrom
SyedShahmeerAli12 wants to merge 2 commits intoinfiniflow:mainfrom
Conversation
When the same model name exists for multiple types (common with
OpenAI-API-Compatible providers), calling get_api_key without a
model_type filter could return the wrong tenant_llm_id, causing the
tenant_{key} columns to reference an incorrect model type.
This is the same class of bug fixed in PR infiniflow#13569 for
get_model_config_by_type_and_name, now applied consistently to
ensure_tenant_model_id_for_params in tenant_utils.py.
Fixes infiniflow#13775
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Added `inline-block max-w-[120px] truncate align-middle` classes to prevent long usernames from wrapping to multiple lines in the UI. Fixes infiniflow#13748 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cike8899
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Long usernames in the SharedBadge component were wrapping to multiple lines due to missing text overflow handling.
Fix
Added inline-block max-w-[120px] truncate align-middle Tailwind classes to the in shared-badge.tsx. This caps the
width at 120px and truncates with an ellipsis instead of wrapping.
Fixes #13748