From 040b41ed90a87958ec9dcf6e22c99a4b97b04809 Mon Sep 17 00:00:00 2001 From: BOHA Date: Mon, 23 Mar 2026 13:59:49 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20pagination=20component=20=E2=80=94=20use?= =?UTF-8?q?=20correct=20CSS=20class=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Component used admin-pagination-btn/pages/dots but CSS has admin-pagination-page/controls/ellipsis. Fixed to match existing CSS. Added record count display. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/admin/components/Pagination.tsx | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/admin/components/Pagination.tsx b/src/admin/components/Pagination.tsx index 1ccbb65..5daf8e1 100644 --- a/src/admin/components/Pagination.tsx +++ b/src/admin/components/Pagination.tsx @@ -12,7 +12,7 @@ interface PaginationProps { export default function Pagination({ pagination, onPageChange, onPerPageChange }: PaginationProps) { if (!pagination || pagination.total_pages <= 1) return null - const { page, total_pages } = pagination + const { page, total_pages, total } = pagination const getPages = () => { const pages: (number | string)[] = [] @@ -29,20 +29,35 @@ export default function Pagination({ pagination, onPageChange, onPerPageChange } return (
-
- {getPages().map((p, i) => typeof p === 'string' ? ( - ... + ... ) : ( - ) )} -
@@ -50,7 +65,7 @@ export default function Pagination({ pagination, onPageChange, onPerPageChange }