fix(ui): phone-width overflows in the audit's flagged rows, with an e2e check (#1757)
deploy / gate (push) Successful in 4m54s
Quality / check (push) Successful in 6m36s
deploy / archied-image (push) Successful in 3m23s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped

Grants rows and toggle groups wrap with a smaller phone label; the token
form wraps and its input flexes; the sources name column caps at full
width and its action buttons wrap; the rule-editor condition row wraps
with a full-width phone select; the payload tree indents less and breaks
long JSON leaves; the topbar instance badge truncates; org agent rows
keep Assign inline and move Rename/Suspend/Retire into a MoreMenu. New
e2e check phone-overflow.cjs visits these views at 390x844 with seeded
data and asserts no horizontal scroll.
This commit is contained in:
sam committed 2026-11-06 23:23:16 +11:00
1 parent 94f79177a2
commit 461d3dc1f7
8 files changed
+91 -31

No files matched your search

+3 -3
View File
@@ -73,11 +73,11 @@ function asOp(value: unknown): PayloadCondition["op"] {
<div
v-for="(p, i) in rule.payload || []"
:key="`p${i}`"
class="flex items-center gap-2"
class="flex flex-wrap items-center gap-2"
>
<Input
v-model="p.path"
class="font-mono"
class="min-w-0 flex-1 font-mono"
aria-label="Payload path"
placeholder="action"
/>
@@ -85,7 +85,7 @@ function asOp(value: unknown): PayloadCondition["op"] {
:model-value="p.op"
@update:model-value="(value) => (p.op = asOp(value))"
>
<SelectTrigger size="sm" class="w-28 shrink-0" aria-label="Condition">
<SelectTrigger size="sm" class="w-28 shrink-0 max-sm:w-full" aria-label="Condition">
<SelectValue />
</SelectTrigger>
<SelectContent>