Phone-width layout fixes (ENB-23)
CI / integration (push) Successful in 12s
CI / check (push) Successful in 16s

Checked at 390px and 360px in a headless mobile Chrome; no horizontal overflow
on any page.

- Tables become stacked cards on phones, with column names from data-label and
  row actions underneath instead of off the edge.
- Nav fits on one line; chips no longer wrap mid-name; less nested padding.
- Graph opens at a fixed readable zoom on phones with a pan/zoom hint, and
  scrolls to the details card when a node or label is tapped.
- Add the missing headings and wide layout to the user, entity and group forms
  (previously only the token form had them).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mattandClaude Sonnet 5.5 committed 2026-10-20 13:34:21 +01:00
1 parent 0882d35123
commit 61bb6d912a
11 files changed
+154 -23

No files matched your search

+90 -4
View File
@@ -998,6 +998,7 @@ dd {
}
.chips li {
white-space: nowrap;
padding: 0 var(--s2);
background: var(--accent-soft);
color: var(--accent);
@@ -1230,17 +1231,101 @@ button.primary:hover:not(:disabled) {
}
}
.graph-hint {
display: none;
}
@media (max-width: 40rem) {
/* Wide tables scroll sideways inside themselves rather than widening the page. */
table {
/*
* Tables become stacked cards: the first cell is the title, other cells show their column name
* (from data-label) above the value, and row actions sit underneath instead of off the edge.
*/
table,
tbody,
tr,
td {
display: block;
overflow-x: auto;
}
table {
overflow: visible;
}
thead {
display: none;
}
tr {
padding: var(--s3) var(--s4);
border-bottom: 1px solid var(--line);
}
tbody tr:last-child {
border-bottom: 0;
}
td {
padding: var(--s1) 0;
border: 0;
}
td[data-label]::before {
content: attr(data-label);
display: block;
color: var(--ink-faint);
font-size: var(--text-sm);
}
td:last-child:has(button) {
display: flex;
flex-wrap: wrap;
gap: var(--s2);
padding-top: var(--s2);
text-align: left;
}
td:last-child button + button {
margin-left: 0;
}
/* Five nav items have to fit on one line. */
.shell > nav {
gap: 0;
padding: 0 var(--s2);
}
.shell > nav strong {
margin-right: var(--s2);
}
.shell > nav a {
padding: var(--s3) var(--s2);
font-size: var(--text-sm);
}
.shell > nav .whoami {
display: none;
}
/* Less nested padding so cards inside cards keep their width. */
form,
.secret-detail {
padding: var(--s4);
}
.access-head {
padding: var(--s3) var(--s4);
}
.access-body {
padding: var(--s3);
}
.graph-hint {
display: list-item;
list-style: none;
}
.graph-toolbar label:not(.check),
.graph-toolbar input:not([type='checkbox']) {
width: 100%;
@@ -1250,8 +1335,9 @@ button.primary:hover:not(:disabled) {
margin-left: 0;
}
/* The legend is already most of a screen on a phone; drop the long note. */
.graph-legend .grow {
margin-left: 0;
display: none;
}
.access-head,