From a5fb2fda4645b0e8d6c1a1a820c6d5e6916c27b8 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Thu, 19 Mar 2026 10:49:07 +0530 Subject: [PATCH] feat: Implement scrollable profile card container with sticky pagination. --- src/app/(user)/user/profiles/page.tsx | 56 ++++++++++++++------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx index 30114b4..f595293 100644 --- a/src/app/(user)/user/profiles/page.tsx +++ b/src/app/(user)/user/profiles/page.tsx @@ -770,35 +770,37 @@ function ProfilesPageContent() { )} - {/* Profile Cards */} + {/* Profile Cards - scrollable container */} {!loading && !error && agents.length > 0 && ( -
- {agents.map((profile) => ( - - ))} -
- )} +
+
+ {agents.map((profile) => ( + + ))} +
- {/* Pagination */} - {!loading && !error && totalPages > 1 && ( -
- - - Page {currentPage} of {totalPages} - - + {/* Pagination */} + {totalPages > 1 && ( +
+ + + Page {currentPage} of {totalPages} + + +
+ )}
)}