Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix username line break in SharedBadge component (#13794)

Renzof3aa3381a2d5
diff --git a/web/src/components/shared-badge.tsx b/web/src/components/shared-badge.tsx
index 03625ba675..2d4a5a4166 100644
--- a/web/src/components/shared-badge.tsx
+++ b/web/src/components/shared-badge.tsx
@@ -8,5 +8,12 @@ export function SharedBadge({ children }: PropsWithChildren) {
return null;
}
- return <span className="bg-bg-card rounded-sm px-1 text-xs inline-block max-w-[120px] truncate align-middle">{children}</span>;
+ return (
+ <span
+ title={typeof children === 'string' ? children : undefined}
+ className="inline-block max-w-[120px] truncate align-middle bg-bg-card rounded-sm px-1 text-xs"
+ >
+ {children}
+ </span>
+ );
}