mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-09 21:04:49 +08:00
fix: Fixed the empty state styling on the home page. (#16755)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user