fix(ui): stack audit content fields vertically and wrap long values
Test / test (push) Failing after 13m24s

This commit is contained in:
bryanpedini committed 2026-11-20 19:29:29 +01:00
1 parent 0c2e3561d6
commit 194dfc9644
3 files changed
+10 -9

No files matched your search

+5 -7
View File
@@ -527,21 +527,19 @@ input[type="radio"] {
.diff-content {
display: flex;
gap: 0.75rem;
overflow-x: auto;
white-space: pre;
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
white-space: pre-wrap;
}
.diff-value {
display: inline-block;
max-width: 100%;
overflow-wrap: anywhere;
padding: 0 0.25rem;
}
.diff-content .diff-value {
flex: none;
}
.diff-before {
background: var(--danger-bg);
color: var(--danger);
+1 -1
View File
@@ -156,7 +156,7 @@ function diffCell(row, side) {
const labels = side === "before" ? row.beforeLabels : row.afterLabels;
const parts = row.fields.filter((field) => field[side] !== undefined);
return h("td", null,
h("div", { class: "diff-content", tabindex: "0", role: "group", "aria-label": side === "before" ? "Before content" : "After content" },
h("div", { class: "diff-content", role: "group", "aria-label": side === "before" ? "Before content" : "After content" },
parts.length ? parts.map((field) => diffValue(field[side], field.kind, side, labels.get(field.path) ?? field.path)) : show(undefined)));
}