Skip to content

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

Fix (web): Optimize text display effect #3221 (#9594)

chanx830cda6a3ae0
diff --git a/web/src/components/home-card.tsx b/web/src/components/home-card.tsx
index 65e10e77ec..cdee90f25d 100644
--- a/web/src/components/home-card.tsx
+++ b/web/src/components/home-card.tsx
@@ -31,7 +31,7 @@ export function HomeCard({ data, onClick, moreDropdown }: IProps) {
</div>
<div className="flex flex-col justify-between gap-1 flex-1 h-full w-[calc(100%-50px)]">
<section className="flex justify-between">
- <div className="text-[20px] font-bold w-80% leading-5">
+ <div className="text-[20px] font-bold w-80% leading-5 text-ellipsis overflow-hidden">
{data.name}
</div>
{moreDropdown}
diff --git a/web/src/pages/dataset/sidebar/index.tsx b/web/src/pages/dataset/sidebar/index.tsx
index 37e46ca0a2..6c49d7a310 100644
--- a/web/src/pages/dataset/sidebar/index.tsx
+++ b/web/src/pages/dataset/sidebar/index.tsx
@@ -62,8 +62,8 @@ export function SideBar({ refreshCount }: PropType) {
name={data.name}
className="size-16"
></RAGFlowAvatar>
- <div className=" text-text-secondary text-xs space-y-1">
- <h3 className="text-lg font-semibold line-clamp-1 text-text-primary">
+ <div className=" text-text-secondary text-xs space-y-1 overflow-hidden">
+ <h3 className="text-lg font-semibold line-clamp-1 text-text-primary text-ellipsis overflow-hidden">
{data.name}
</h3>
<div className="flex justify-between">