Skip to content

Fix: username line break in SharedBadge component#13783

Closed
SyedShahmeerAli12 wants to merge 2 commits intoinfiniflow:mainfrom
SyedShahmeerAli12:fix/shared-badge-username-line-break
Closed

Fix: username line break in SharedBadge component#13783
SyedShahmeerAli12 wants to merge 2 commits intoinfiniflow:mainfrom
SyedShahmeerAli12:fix/shared-badge-username-line-break

Conversation

@SyedShahmeerAli12
Copy link
Copy Markdown
Contributor

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

SyedShahmeerAli12 and others added 2 commits March 25, 2026 12:45
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>
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 25, 2026
@RenzoMXD RenzoMXD mentioned this pull request Mar 25, 2026
4 tasks
@SyedShahmeerAli12 SyedShahmeerAli12 deleted the fix/shared-badge-username-line-break branch April 13, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: User name line break

2 participants