diff --git a/app/(dashboard)/waf-events/WafEventsClient.tsx b/app/(dashboard)/waf-events/WafEventsClient.tsx index ad2cca21..5348a3df 100644 --- a/app/(dashboard)/waf-events/WafEventsClient.tsx +++ b/app/(dashboard)/waf-events/WafEventsClient.tsx @@ -60,9 +60,9 @@ export default function WafEventsClient({ events, pagination, initialSearch }: P { id: "ts", label: "Time", - width: 170, + width: 150, render: (r: WafEvent) => ( - + {new Date(r.ts * 1000).toLocaleString()} ), @@ -70,26 +70,28 @@ export default function WafEventsClient({ events, pagination, initialSearch }: P { id: "severity", label: "Severity", - width: 110, + width: 100, render: (r: WafEvent) => , }, { id: "host", label: "Host", - width: 200, + width: 150, render: (r: WafEvent) => ( - - {r.host || } - + + + {r.host || } + + ), }, { id: "clientIp", label: "Client IP", - width: 160, + width: 140, render: (r: WafEvent) => ( - + {r.clientIp} {r.countryCode && ( @@ -100,8 +102,8 @@ export default function WafEventsClient({ events, pagination, initialSearch }: P }, { id: "method", - label: "Method", - width: 80, + label: "M", + width: 60, render: (r: WafEvent) => ( ), @@ -109,11 +111,12 @@ export default function WafEventsClient({ events, pagination, initialSearch }: P { id: "uri", label: "URI", + width: 200, render: (r: WafEvent) => ( {r.uri || } @@ -123,7 +126,7 @@ export default function WafEventsClient({ events, pagination, initialSearch }: P { id: "ruleId", label: "Rule ID", - width: 90, + width: 80, render: (r: WafEvent) => ( {r.ruleId ?? "—"} @@ -137,7 +140,7 @@ export default function WafEventsClient({ events, pagination, initialSearch }: P {r.ruleMessage ?? } diff --git a/src/components/ui/DataTable.tsx b/src/components/ui/DataTable.tsx index 34b99a36..7f5dcd81 100644 --- a/src/components/ui/DataTable.tsx +++ b/src/components/ui/DataTable.tsx @@ -73,8 +73,8 @@ export function DataTable({ }: DataTableProps) { return ( - - + +
{columns.map((col) => (