Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix: autopilot page and modal mobile responsive (MUL-2929) (#3471)

Anderson Shindy Oki92309cf5e21b
diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsx
index 584a198e9d..9e8b8f4217 100644
--- a/packages/views/autopilots/components/autopilot-detail-page.tsx
+++ b/packages/views/autopilots/components/autopilot-detail-page.tsx
@@ -695,7 +695,7 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {
}
/>
<span className={cn(
- "text-xs font-medium",
+ "text-xs font-medium hidden sm:inline",
autopilot.status === "active" ? "text-emerald-500" :
autopilot.status === "paused" ? "text-amber-500" :
"text-muted-foreground",
@@ -707,15 +707,27 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {
}
actions={
<>
- <Button size="sm" variant="outline" onClick={() => setEditDialogOpen(true)}>
- <Pencil className="h-3.5 w-3.5 mr-1" />
- {t(($) => $.detail.edit)}
+ <Button size="sm" variant="outline" onClick={() => setEditDialogOpen(true)} className="px-2 sm:px-2.5" aria-label={t(($) => $.detail.edit)}>
+ <Pencil className="h-3.5 w-3.5 sm:mr-1" />
+ <span className="hidden sm:inline">{t(($) => $.detail.edit)}</span>
</Button>
- <Button size="sm" onClick={handleRunNow} disabled={autopilot.status !== "active" || triggerAutopilot.isPending}>
- <Play className="h-3.5 w-3.5 mr-1" />
- {triggerAutopilot.isPending
- ? t(($) => $.detail.running)
- : t(($) => $.detail.run_now)}
+ <Button
+ size="sm"
+ onClick={handleRunNow}
+ disabled={autopilot.status !== "active" || triggerAutopilot.isPending}
+ className="px-2 sm:px-2.5"
+ aria-label={triggerAutopilot.isPending ? t(($) => $.detail.running) : t(($) => $.detail.run_now)}
+ >
+ {triggerAutopilot.isPending ? (
+ <Loader2 className="h-3.5 w-3.5 sm:mr-1 animate-spin" />
+ ) : (
+ <Play className="h-3.5 w-3.5 sm:mr-1" />
+ )}
+ <span className="hidden sm:inline">
+ {triggerAutopilot.isPending
+ ? t(($) => $.detail.running)
+ : t(($) => $.detail.run_now)}
+ </span>
</Button>
</>
}
diff --git a/packages/views/autopilots/components/autopilot-dialog.tsx b/packages/views/autopilots/components/autopilot-dialog.tsx
index 85eb8a9d81..a6355ebdd1 100644
--- a/packages/views/autopilots/components/autopilot-dialog.tsx
+++ b/packages/views/autopilots/components/autopilot-dialog.tsx
@@ -587,10 +587,10 @@ export function AutopilotDialog(props: AutopilotDialogProps) {
{/* Body: two columns (stacks on narrow screens via flex-wrap at container level) */}
<div
key={contentKey}
- className="flex-1 min-h-0 flex flex-col lg:flex-row overflow-hidden"
+ className="flex-1 min-h-0 flex flex-col lg:flex-row overflow-y-auto lg:overflow-hidden"
>
{/* Left: Runbook */}
- <div className="flex-1 min-h-0 flex flex-col border-b lg:border-b-0 lg:border-r">
+ <div className="flex-none lg:flex-1 min-h-0 flex flex-col border-b lg:border-b-0 lg:border-r">
<div className="px-6 pt-5 pb-3 shrink-0">
<TitleEditor
autoFocus={isCreate}
@@ -611,8 +611,8 @@ export function AutopilotDialog(props: AutopilotDialogProps) {
</span>
</div>
- <div className="flex-1 min-h-0 px-6 pb-6 flex flex-col">
- <div className="h-full overflow-y-auto rounded-lg border border-border bg-background transition-colors focus-within:border-input px-4 py-3">
+ <div className="flex-1 min-h-0 px-6 pb-6 flex flex-col lg:h-full">
+ <div className="min-h-[200px] lg:min-h-0 lg:h-full overflow-y-auto rounded-lg border border-border bg-background transition-colors focus-within:border-input px-4 py-3">
<ContentEditor
defaultValue={initial.description ?? ""}
placeholder={t(($) => $.dialog.description_placeholder)}
@@ -625,7 +625,7 @@ export function AutopilotDialog(props: AutopilotDialogProps) {
</div>
{/* Right: Configuration */}
- <aside className="w-full lg:w-[340px] shrink-0 overflow-y-auto px-5 py-5 space-y-5 bg-muted/30">
+ <aside className="w-full lg:w-[340px] shrink-0 overflow-visible lg:overflow-y-auto px-5 py-5 space-y-5 bg-muted/30">
<AgentSection
selectedType={assigneeType}
selectedId={assigneeId}