From b22512bbf33f04c9fa3c6a5739830448534dd521 Mon Sep 17 00:00:00 2001 From: TerrifiedBug Date: Tue, 10 Mar 2026 13:31:46 +0000 Subject: [PATCH] fix: responsive audit log table for smaller screens Hide IP Address (below xl) and Details (below lg) columns on smaller screens since both are available in the expanded row. Switch from table-fixed to auto layout so remaining columns size naturally. Show IP address in the expanded row when the column is hidden. --- src/app/(dashboard)/audit/page.tsx | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/app/(dashboard)/audit/page.tsx b/src/app/(dashboard)/audit/page.tsx index ff1d90ba..b5eb2dbd 100644 --- a/src/app/(dashboard)/audit/page.tsx +++ b/src/app/(dashboard)/audit/page.tsx @@ -347,17 +347,17 @@ export default function AuditPage() { ) : ( <>
- +
- Timestamp - User - IP Address - Action - Entity Type - Entity ID - Details + Timestamp + User + IP Address + Action + Entity Type + Entity ID + Details @@ -393,7 +393,7 @@ export default function AuditPage() { {entry.userName || entry.userEmail || entry.user?.name || entry.user?.email} - + {entry.ipAddress || "\u2014"} @@ -410,10 +410,10 @@ export default function AuditPage() { {entry.entityType} - + {entry.entityId} - + {truncate( entry.diff ?? (entry.metadata as Record)?.input ?? @@ -423,8 +423,14 @@ export default function AuditPage() { {isExpanded && hasDetails && ( - +
+ {entry.ipAddress && ( +
+

IP Address

+ {entry.ipAddress} +
+ )} {hasMetadata && (

Details