fix(ui): phone-width overflows in the audit's flagged rows, with an e2e check (#1757)
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:
8 files changed
+91
-31
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user