From 5b3112a13788ce0ea7048cd047da4f4a13fa29f9 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Wed, 11 Dec 2024 14:10:28 +0800 Subject: [PATCH] fix: model page empty --- .../header/account-setting/model-provider-page/index.tsx | 1 + web/app/components/plugins/marketplace/list/index.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/components/header/account-setting/model-provider-page/index.tsx b/web/app/components/header/account-setting/model-provider-page/index.tsx index dd1f3398f4..ce2036855c 100644 --- a/web/app/components/header/account-setting/model-provider-page/index.tsx +++ b/web/app/components/header/account-setting/model-provider-page/index.tsx @@ -237,6 +237,7 @@ const ModelProviderPage = ({ searchText }: Props) => { locale={locale} cardContainerClassName='grid grid-cols-2 gap-2' cardRender={cardRender} + emptyClassName='h-auto' /> ) } diff --git a/web/app/components/plugins/marketplace/list/index.tsx b/web/app/components/plugins/marketplace/list/index.tsx index cd703c9180..a2c8df0b0f 100644 --- a/web/app/components/plugins/marketplace/list/index.tsx +++ b/web/app/components/plugins/marketplace/list/index.tsx @@ -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 && ( - + ) }