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