The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix(ui): improve mobile task spacing (#13304)
Dotta586b5ec828e5
diff --git a/ui/src/components/TaskChatThread.test.tsx b/ui/src/components/TaskChatThread.test.tsxindex c9cb995574..2994a3acc2 100644--- a/ui/src/components/TaskChatThread.test.tsx+++ b/ui/src/components/TaskChatThread.test.tsx@@ -423,9 +423,9 @@ describe("TaskChatThread draft pass-through", () => {const thread = container.querySelector('[data-testid="task-chat-thread"]');expect(thread?.classList).not.toContain("h-(--tc-thread-max-h)");expect(thread?.classList).toContain("flex-1");- expect(dock?.classList).toContain("px-2");+ expect(dock?.classList).toContain("px-1");expect(dock?.classList).toContain("md:px-0");- expect(dock?.classList).not.toContain("px-1");+ expect(dock?.classList).not.toContain("px-2");expect(dock?.classList).not.toContain("-mt-(--radius-task-composer)");expect(dock?.classList).not.toContain("pt-1");expect(dock?.classList).toContain("md:pb-0");diff --git a/ui/src/components/TaskChatThread.tsx b/ui/src/components/TaskChatThread.tsxindex 046390c3ef..123e617d69 100644--- a/ui/src/components/TaskChatThread.tsx+++ b/ui/src/components/TaskChatThread.tsx@@ -2889,7 +2889,7 @@ export function TaskChatThread(props: TaskChatThreadProps) {isMobile? "bottom-(--tc-composer-bottom) z-20 transition-[bottom] duration-200 ease-out": "bottom-0 z-10",- "mx-auto flex w-full max-w-(--tc-shell-max-w) flex-col gap-2 px-2 pb-2 md:px-4",+ "mx-auto flex w-full max-w-(--tc-shell-max-w) flex-col gap-2 px-1 pb-1 md:px-4 md:pb-2",streamlinedUiEnabled && "md:px-0 md:pb-0",(!streamlinedUiEnabled || isMobile) &&"bg-background/80 pt-1 backdrop-blur supports-[backdrop-filter]:bg-background/60 dark:bg-transparent dark:backdrop-blur-none dark:supports-[backdrop-filter]:bg-transparent",diff --git a/ui/src/components/task-chat/TaskChatComposer.tsx b/ui/src/components/task-chat/TaskChatComposer.tsxindex 8448672a92..3c165153bb 100644--- a/ui/src/components/task-chat/TaskChatComposer.tsx+++ b/ui/src/components/task-chat/TaskChatComposer.tsx@@ -1074,7 +1074,7 @@ export function TaskChatComposer({streamlined? "paperclip-task-chat-composer rounded-(--radius-task-composer) border border-border bg-card p-(--sz-18px) shadow-(--shadow-task-composer) dark:border-0 dark:bg-muted dark:shadow-none": "paperclip-task-chat-composer rounded-xl bg-card p-(--sz-18px)",- mobile && "p-3",+ mobile && "p-2",)}onKeyDownCapture={(e) => {// Capture mode shortcuts on the wrapper so they work while the richdiff --git a/ui/src/components/task-chat/TaskChatThreadView.tsx b/ui/src/components/task-chat/TaskChatThreadView.tsxindex a1242e367c..7050889da4 100644--- a/ui/src/components/task-chat/TaskChatThreadView.tsx+++ b/ui/src/components/task-chat/TaskChatThreadView.tsx@@ -429,7 +429,7 @@ export function TaskChatThreadView({const body = (<divclassName={cn(- "paperclip-mobile-thread mx-auto flex w-full max-w-(--tc-shell-max-w) flex-col px-2 py-4 md:px-4",+ "paperclip-mobile-thread mx-auto flex w-full max-w-(--tc-shell-max-w) flex-col px-1 py-3 md:px-4 md:py-4",streamlined ? "md:px-0" : "gap-5",className,)}diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsxindex b749f1504f..74bc882b5c 100644--- a/ui/src/pages/IssueDetail.tsx+++ b/ui/src/pages/IssueDetail.tsx@@ -6752,8 +6752,8 @@ export function IssueDetail({ tasksTab }: { tasksTab?: TaskSidePanelProps["tasks)}>{streamlinedTaskDetailEnabled ? (- <div className="flex min-w-0 items-center gap-2 pr-8">- {issueStatusControl}+ <div className="flex min-w-0 items-start gap-2 md:items-center md:pr-8">+ <div className="hidden md:block">{issueStatusControl}</div><divdata-slot="task-detail-title"className="flex min-w-0 flex-1 items-baseline gap-2"@@ -6766,7 +6766,7 @@ export function IssueDetail({ tasksTab }: { tasksTab?: TaskSidePanelProps["tasks/><spandata-slot="task-title-identifier"- className="shrink-0 font-mono text-sm text-muted-foreground"+ className="hidden shrink-0 font-mono text-sm text-muted-foreground md:inline">{issue.identifier ?? issue.id.slice(0, 8)}</span>@@ -6777,9 +6777,17 @@ export function IssueDetail({ tasksTab }: { tasksTab?: TaskSidePanelProps["tasks<divclassName={cn("flex min-w-0 flex-wrap items-center gap-2",- streamlinedTaskDetailEnabled && "gap-x-6 gap-y-2 pl-7",+ streamlinedTaskDetailEnabled && "gap-x-3 gap-y-2 md:gap-x-6 md:pl-7",)}>+ {streamlinedTaskDetailEnabled ? (+ <div className="md:hidden">{issueStatusControl}</div>+ ) : null}+ {streamlinedTaskDetailEnabled ? (+ <span className="shrink-0 font-mono text-sm text-muted-foreground md:hidden">+ {issue.identifier ?? issue.id.slice(0, 8)}+ </span>+ ) : null}{!streamlinedTaskDetailEnabled ? issueStatusControl : null}{/* PAP-411: priority UI hidden behind SHOW_TASK_PRIORITY_UI. */}{SHOW_TASK_PRIORITY_UI && (