web: Scroll the audit log sideways on phones

The table shrank to the screen's width, squeezing its columns. A
minimum width makes its .scroll wrapper scroll instead, the headings
and the short columns (time, requester, approver) stay on one line,
and the log page isn't held to the request cards' width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-23 14:12:18 +00:00
1 parent 652e80961a
commit 40a8be0da4
1 file changed
+21
+21
View File
@@ -78,6 +78,11 @@ main {
padding: 16px;
}
/* The audit log has more columns than a request card; let it use the window. */
main:has(table.log) {
max-width: none;
}
a {
color: var(--accent);
}
@@ -274,12 +279,28 @@ code {
overflow-x: auto;
}
/* Wide enough to stay readable on a phone, scrolling sideways inside `.scroll`. */
table.log {
min-width: 40rem;
}
table.log td:first-child {
white-space: nowrap;
color: var(--muted);
font-size: 0.9rem;
}
/* Headings, requesters and approvers are short; keep them on one line. */
table.log th,
table.log td:nth-child(2),
table.log td:nth-child(5) {
white-space: nowrap;
}
table.log td:nth-child(3) {
min-width: 14rem;
}
table.log .label {
color: var(--muted);
font-size: 0.9rem;