From baf6a4cf54ea3c59823f881a0356da4e0e9911a4 Mon Sep 17 00:00:00 2001 From: Kartik sharma Date: Sat, 28 Jun 2025 15:52:28 +0530 Subject: [PATCH 1/2] =?UTF-8?q?"Pagination=20overlaps=20on=20'+'=20(Add)?= =?UTF-8?q?=20button=20in=20Directory=20=E2=80=93=20bottom=20right=20corne?= =?UTF-8?q?r"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Directory/NotesCardViewDirectory.jsx | 73 ++++++++++--------- 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/src/components/Directory/NotesCardViewDirectory.jsx b/src/components/Directory/NotesCardViewDirectory.jsx index be207ffd..75a16b06 100644 --- a/src/components/Directory/NotesCardViewDirectory.jsx +++ b/src/components/Directory/NotesCardViewDirectory.jsx @@ -107,7 +107,7 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp return (
{/* Filter Dropdown */} -
+
{/* Notes List */} @@ -129,41 +129,46 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp {/* Pagination */} {totalPages > 1 && ( -
-
- +
+ {/* Previous Button */} + - {[...Array(totalPages)].map((_, i) => { - const page = i + 1; - return ( - - ); - })} + {/* Page Number Buttons */} + {[...Array(totalPages)].map((_, i) => { + const page = i + 1; + return ( + + ); + })} - -
+ {/* Next Button */} +
)}
From 111325968dd7d75b99863c6f0b07abe4e0bd05dd Mon Sep 17 00:00:00 2001 From: Kartik sharma Date: Mon, 30 Jun 2025 11:32:36 +0530 Subject: [PATCH 2/2] "Adding margin-bottom to the pagination section in Directory Notes." --- src/components/Directory/NotesCardViewDirectory.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Directory/NotesCardViewDirectory.jsx b/src/components/Directory/NotesCardViewDirectory.jsx index 75a16b06..d29354d7 100644 --- a/src/components/Directory/NotesCardViewDirectory.jsx +++ b/src/components/Directory/NotesCardViewDirectory.jsx @@ -130,7 +130,7 @@ const NotesCardViewDirectory = ({ notes, setNotesForFilter, searchText, filterAp {/* Pagination */} {totalPages > 1 && (
+ style={{ marginBottom: '70px' }}> {/* Previous Button */}