fix(ui): add a warn alert variant and fit org and model forms on phones

This commit is contained in:
sam committed 2026-10-24 13:26:35 +11:00
1 parent 951acb8088
commit ffafc3a989
8 files changed
+22 -29

No files matched your search

+2 -3
View File
@@ -18,7 +18,6 @@ import { api } from "@/lib/api";
import { runQuery, type LogState } from "./task-run";
import { firstLine } from "./first-line";
import { statusKind, statusLabel } from "@/lib/task-meta";
import { cn } from "@/lib/utils";
import DispatchLinks from "@/bindings/DispatchLinks.vue";
import { MetadataList } from "@/components/ui/metadata-list";
import { Section } from "@/components/ui/section";
@@ -164,8 +163,8 @@ const headerActions = computed(() =>
<Alert
v-if="failure"
:variant="failure.parked ? 'default' : 'destructive'"
:class="cn('mt-4', failure.parked && 'border-warn/40 bg-warn-soft')"
:variant="failure.parked ? 'warn' : 'destructive'"
class="mt-4"
>
<CircleAlert aria-hidden="true" />
<AlertTitle class="flex flex-wrap items-center justify-between gap-2">
+1 -3
View File
@@ -30,9 +30,7 @@ const note = computed(() => {
</script>
<template>
<!-- warn-soft rather than the Alert's default surface: this is a caution the
operator should read past, not a panel to look at. -->
<Alert v-if="note" class="mb-4 border-warn bg-warn-soft">
<Alert v-if="note" variant="warn" class="mb-4">
<AlertTriangle />
<AlertDescription>{{ note }}</AlertDescription>
</Alert>