From c4c2d7d9f7235b88e395af2897f87891636c73fc Mon Sep 17 00:00:00 2001 From: nyne Date: Tue, 27 May 2025 18:46:32 +0800 Subject: [PATCH] Improve article --- frontend/src/components/pagination.tsx | 18 +-- frontend/src/markdown.css | 8 + frontend/src/network/network.ts | 2 +- frontend/src/pages/resource_details_page.tsx | 151 ++++++++++--------- 4 files changed, 98 insertions(+), 81 deletions(-) diff --git a/frontend/src/components/pagination.tsx b/frontend/src/components/pagination.tsx index 670ff5a..7fbb8a1 100644 --- a/frontend/src/components/pagination.tsx +++ b/frontend/src/components/pagination.tsx @@ -9,27 +9,27 @@ export default function Pagination({page, setPage, totalPages}: { const items: ReactNode[] = []; if (page > 1) { - items.push(); + items.push(); } if (page - 2 > 1) { - items.push(); + items.push(); } if (page - 1 > 1) { - items.push(); + items.push(); } - items.push(); + items.push(); if (page + 1 < totalPages) { - items.push(); + items.push(); } if (page + 2 < totalPages) { - items.push(); + items.push(); } if (page < totalPages) { - items.push(); + items.push(); } return
- {items} -