From 36f053a24833d96a2b10afb76a09c2a939ad7f2d Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Thu, 9 Jul 2026 09:45:43 +0800 Subject: [PATCH] fix: Fixed the empty state styling on the home page. (#16755) --- web/src/pages/home/applications.tsx | 10 ++++++---- web/src/pages/home/datasets.tsx | 12 +++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/web/src/pages/home/applications.tsx b/web/src/pages/home/applications.tsx index 46b6654bc..d9208640d 100644 --- a/web/src/pages/home/applications.tsx +++ b/web/src/pages/home/applications.tsx @@ -115,10 +115,12 @@ export function Applications() { {listLength <= 0 && !loading && ( - handleNavigate({ isCreate: true })} - /> +
+ handleNavigate({ isCreate: true })} + /> +
)} {/* */} diff --git a/web/src/pages/home/datasets.tsx b/web/src/pages/home/datasets.tsx index 72f4abdc0..e5e27449a 100644 --- a/web/src/pages/home/datasets.tsx +++ b/web/src/pages/home/datasets.tsx @@ -57,11 +57,13 @@ export function Datasets() { } )} - {kbs?.length <= 0 && ( - navigateToDatasetList({ isCreate: true })} - /> + {!(kbs && kbs?.length > 0) && ( +
+ navigateToDatasetList({ isCreate: true })} + /> +
)} //