Skip to content

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

fix: Fixed the empty state styling on the home page. (#16755)

chanx36f053a24833
diff --git a/web/src/pages/home/applications.tsx b/web/src/pages/home/applications.tsx
index 46b6654bcf..d9208640d8 100644
--- a/web/src/pages/home/applications.tsx
+++ b/web/src/pages/home/applications.tsx
@@ -115,10 +115,12 @@ export function Applications() {
</CardSineLineContainer>
{listLength <= 0 && !loading && (
- <EmptyAppCard
- type={EmptyTypeMap[val as keyof typeof EmptyTypeMap]}
- onClick={() => handleNavigate({ isCreate: true })}
- />
+ <div className="w-[210px]">
+ <EmptyAppCard
+ type={EmptyTypeMap[val as keyof typeof EmptyTypeMap]}
+ onClick={() => handleNavigate({ isCreate: true })}
+ />
+ </div>
)}
{/* </div> */}
</section>
diff --git a/web/src/pages/home/datasets.tsx b/web/src/pages/home/datasets.tsx
index 72f4abdc02..e5e27449a6 100644
--- a/web/src/pages/home/datasets.tsx
+++ b/web/src/pages/home/datasets.tsx
@@ -57,11 +57,13 @@ export function Datasets() {
}
</CardSineLineContainer>
)}
- {kbs?.length <= 0 && (
- <EmptyAppCard
- type={EmptyCardType.Dataset}
- onClick={() => navigateToDatasetList({ isCreate: true })}
- />
+ {!(kbs && kbs?.length > 0) && (
+ <div className="w-[210px]">
+ <EmptyAppCard
+ type={EmptyCardType.Dataset}
+ onClick={() => navigateToDatasetList({ isCreate: true })}
+ />
+ </div>
)}
</>
// </div>