mirror of
https://github.com/langgenius/dify.git
synced 2026-04-22 03:37:44 +08:00
fix: update showViewMore logic in CollectionHeader to improve visibility conditions for marketplace collections
This commit is contained in:
@ -49,8 +49,9 @@ export function CollectionHeader<TCollection extends BaseCollection>({
|
||||
carouselCollectionNames,
|
||||
viewMore,
|
||||
}: CollectionHeaderProps<TCollection>) {
|
||||
const showViewMore = collection.searchable
|
||||
&& (carouselCollectionNames.includes(collection.name) || itemsLength > GRID_DISPLAY_LIMIT)
|
||||
const showViewMore = (collection.searchable || collection.search_params)
|
||||
&& !carouselCollectionNames.includes(collection.name)
|
||||
&& itemsLength > GRID_DISPLAY_LIMIT
|
||||
|
||||
return (
|
||||
<div className="mb-2 flex items-end justify-between">
|
||||
|
||||
Reference in New Issue
Block a user