mirror of https://github.com/langgenius/dify.git
fix: model page empty
This commit is contained in:
parent
35fb9099e3
commit
5b3112a137
|
|
@ -237,6 +237,7 @@ const ModelProviderPage = ({ searchText }: Props) => {
|
|||
locale={locale}
|
||||
cardContainerClassName='grid grid-cols-2 gap-2'
|
||||
cardRender={cardRender}
|
||||
emptyClassName='h-auto'
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ type ListProps = {
|
|||
cardContainerClassName?: string
|
||||
cardRender?: (plugin: Plugin) => JSX.Element | null
|
||||
onMoreClick?: () => void
|
||||
emptyClassName?: string
|
||||
}
|
||||
const List = ({
|
||||
marketplaceCollections,
|
||||
|
|
@ -25,6 +26,7 @@ const List = ({
|
|||
cardContainerClassName,
|
||||
cardRender,
|
||||
onMoreClick,
|
||||
emptyClassName,
|
||||
}: ListProps) => {
|
||||
return (
|
||||
<>
|
||||
|
|
@ -67,7 +69,7 @@ const List = ({
|
|||
}
|
||||
{
|
||||
plugins && !plugins.length && (
|
||||
<Empty />
|
||||
<Empty className={emptyClassName} />
|
||||
)
|
||||
}
|
||||
</>
|
||||
|
|
|
|||
Loading…
Reference in New Issue