diff --git a/frontend/components/common/DataTable.tsx b/frontend/components/common/DataTable.tsx index a1a3f03e..cd7d1a66 100644 --- a/frontend/components/common/DataTable.tsx +++ b/frontend/components/common/DataTable.tsx @@ -65,17 +65,17 @@ export function DataTable({ return (
- {/* 테이블 상단 툴바 */} -
-
+ {/* 테이블 상단 툴바 - 모바일: 세로 스택, sm 이상: 가로 배치 */} +
+
{searchable && (
- + setGlobalFilter(event.target.value)} - className="w-64 pl-8" + className="w-full pl-8 sm:w-64" />
)} @@ -98,15 +98,15 @@ export function DataTable({
- {/* 테이블 */} -
+ {/* 테이블 - 가로 스크롤 지원 */} +
{table.getHeaderGroups().map((headerGroup) => ( {headerGroup.headers.map((header) => { return ( - + {header.isPlaceholder ? null : (
({ onRowClick?.(row.original)} > {row.getVisibleCells().map((cell) => ( @@ -162,16 +162,17 @@ export function DataTable({
- {/* 페이지네이션 */} -
-
+ {/* 페이지네이션 - 모바일: 세로 스택, sm 이상: 가로 배치 */} +
+
{table.getFilteredSelectedRowModel().rows.length}개 중 {table.getFilteredRowModel().rows.length}개 표시
-
+
-

페이지당 행 수

+ {/* 모바일에서 "페이지당 행 수" 텍스트 숨김 */} +

페이지당 행 수

-
- 페이지 {table.getState().pagination.pageIndex + 1} / {table.getPageCount()} -
-
+
+
+ 페이지 {table.getState().pagination.pageIndex + 1} / {table.getPageCount()} +