From a863ef2597769177ea854180a19921d2ca01f714 Mon Sep 17 00:00:00 2001 From: fyui001 Date: Fri, 10 Jul 2026 15:52:19 +0900 Subject: [PATCH] Move table pagination into the card footer Relocate the page-size select and pager from the card header to a bordered footer with a total count on the left, leaving the header to the title alone. The footer select opens upward. --- components/common/PaginatedTable.tsx | 54 ++++++++++++++++------------ 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/components/common/PaginatedTable.tsx b/components/common/PaginatedTable.tsx index 3dc2813..0cfcdea 100644 --- a/components/common/PaginatedTable.tsx +++ b/components/common/PaginatedTable.tsx @@ -8,7 +8,13 @@ import { SelectTrigger, SelectValue, } from 'components/ui/select' -import { Card, CardContent, CardHeader, CardTitle } from 'components/ui/card' +import { + Card, + CardContent, + CardFooter, + CardHeader, + CardTitle, +} from 'components/ui/card' import { ChevronLeft, ChevronRight } from 'lucide-react' import { type ReactNode } from 'react' import { type ColumnDef } from '@tanstack/react-table' @@ -56,19 +62,33 @@ export default function PaginatedTable({ }: PaginatedTableProps) { return ( - - - {title} ({total}) - + + {title} + + + + + +
全 {total} 件