fix(tools): restore 6-tool limit per category with 'See more' pagination button
This commit is contained in:
@@ -1182,9 +1182,9 @@ export function ToolGridSection({
|
|||||||
: group.id;
|
: group.id;
|
||||||
const catDesc = group.category ? resolveLocalised(group.category.description, locale) : '';
|
const catDesc = group.category ? resolveLocalised(group.category.description, locale) : '';
|
||||||
|
|
||||||
// Display all tools in the category directly
|
// In "All Tools" view, only 2 rows are visible (3 items per row * 2 rows = 6 tools)
|
||||||
const displayedTools = group.tools;
|
const displayedTools = group.tools.slice(0, 6);
|
||||||
const hasMoreTools = false;
|
const hasMoreTools = group.tools.length > 6;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@@ -1259,7 +1259,7 @@ export function ToolGridSection({
|
|||||||
}}
|
}}
|
||||||
className="inline-flex items-center gap-2 px-6 py-2.5 rounded-xl bg-white hover:bg-slate-900 text-slate-900 hover:text-white border border-slate-200 hover:border-slate-900 font-sans font-semibold text-xs sm:text-sm shadow-xs hover:shadow-md transition-all duration-200 group/more cursor-pointer active:scale-98"
|
className="inline-flex items-center gap-2 px-6 py-2.5 rounded-xl bg-white hover:bg-slate-900 text-slate-900 hover:text-white border border-slate-200 hover:border-slate-900 font-sans font-semibold text-xs sm:text-sm shadow-xs hover:shadow-md transition-all duration-200 group/more cursor-pointer active:scale-98"
|
||||||
>
|
>
|
||||||
<span>See more in {catName} ({group.tools.length - 8} more tools)</span>
|
<span>See more in {catName} ({group.tools.length - 6} more tools)</span>
|
||||||
<ArrowRight className="w-4 h-4 text-accent group-hover/more:text-white group-hover/more:translate-x-1 transition-all" />
|
<ArrowRight className="w-4 h-4 text-accent group-hover/more:text-white group-hover/more:translate-x-1 transition-all" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user