fix(ui): add a warn alert variant and fit org and model forms on phones
This commit is contained in:
1 parent
951acb8088
commit
ffafc3a989
8 files changed
+22
-29
No files matched your search
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user