diff --git a/src/web/assets/style.css b/src/web/assets/style.css index c1a7195..3c39bdb 100644 --- a/src/web/assets/style.css +++ b/src/web/assets/style.css @@ -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;