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

This commit is contained in:
chanx
2026-07-09 09:45:43 +08:00
committed by GitHub
parent 70019810a1
commit 36f053a248
2 changed files with 13 additions and 9 deletions

View File

@@ -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>

View File

@@ -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>