1
0
forked from baron/baron-sso

감사 로그 테이블에 공통 table 스타일 적용

This commit is contained in:
2026-05-13 17:07:15 +09:00
parent ee8cfb4ba8
commit 481ec5fc15
2 changed files with 17 additions and 5 deletions

View File

@@ -27,6 +27,10 @@ import {
TableHeader, TableHeader,
TableRow, TableRow,
} from "../../components/ui/table"; } from "../../components/ui/table";
import {
commonTableShellClass,
commonTableViewportClass,
} from "../../../../common/ui/table";
import type { AuditLog } from "../../lib/adminApi"; import type { AuditLog } from "../../lib/adminApi";
import { fetchAuditLogs } from "../../lib/adminApi"; import { fetchAuditLogs } from "../../lib/adminApi";
import { t } from "../../lib/i18n"; import { t } from "../../lib/i18n";
@@ -254,8 +258,8 @@ function AuditLogsPage() {
)) ))
)} )}
</div> </div>
<div className="flex-1 rounded-md border overflow-hidden flex flex-col"> <div className={commonTableShellClass}>
<div className="flex-1 overflow-auto relative custom-scrollbar"> <div className={commonTableViewportClass}>
<Table className="table-fixed"> <Table className="table-fixed">
<TableHeader className="sticky top-0 z-10 bg-secondary shadow-sm"> <TableHeader className="sticky top-0 z-10 bg-secondary shadow-sm">
<TableRow> <TableRow>

View File

@@ -28,6 +28,10 @@ import {
TableHeader, TableHeader,
TableRow, TableRow,
} from "../../components/ui/table"; } from "../../components/ui/table";
import {
commonTableShellClass,
commonTableViewportClass,
} from "../../../../common/ui/table";
import type { DevAuditLog } from "../../lib/devApi"; import type { DevAuditLog } from "../../lib/devApi";
import { fetchDevAuditLogs } from "../../lib/devApi"; import { fetchDevAuditLogs } from "../../lib/devApi";
import { t } from "../../lib/i18n"; import { t } from "../../lib/i18n";
@@ -280,8 +284,10 @@ function AuditLogsPage() {
: "" : ""
} }
> >
<Table className="table-fixed"> <div className={commonTableShellClass}>
<TableHeader> <div className={commonTableViewportClass}>
<Table className="table-fixed">
<TableHeader className="sticky top-0 z-10 bg-secondary shadow-sm">
<TableRow> <TableRow>
<TableHead className="w-[190px]"> <TableHead className="w-[190px]">
{t("ui.dev.audit.table.time", "Time")} {t("ui.dev.audit.table.time", "Time")}
@@ -430,7 +436,9 @@ function AuditLogsPage() {
}) })
)} )}
</TableBody> </TableBody>
</Table> </Table>
</div>
</div>
</div> </div>
{query.hasNextPage ? ( {query.hasNextPage ? (