Skip to content

Commit 5b6628b

Browse files
committed
fix(web): align composer task rows
1 parent 394af73 commit 5b6628b

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

‎apps/web/src/components/chat/ComposerTasksBadge.tsx‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ListTodoIcon } from "lucide-react";
1+
import { CheckIcon, CircleDotIcon, CircleIcon, ListTodoIcon } from "lucide-react";
22
import { memo, type ComponentProps } from "react";
33

44
import { formatDuration } from "../../session-logic";
@@ -166,36 +166,41 @@ export const ComposerTasksContent = memo(function ComposerTasksContent({
166166
data-composer-tasks-list="true"
167167
>
168168
{keyedTaskSteps(steps).map(({ key, step }) => (
169-
<ComposerBanner.Row key={key} render={<li />}>
169+
<ComposerBanner.Row key={key} render={<li />} className="items-start py-1 pe-2">
170170
<ComposerBanner.Icon
171171
className={cn(
172-
"font-mono text-[10px]",
172+
"h-4",
173173
step.status === "completed"
174174
? "text-success"
175175
: step.status === "inProgress"
176176
? "text-primary"
177177
: "text-muted-foreground/40",
178178
)}
179179
>
180-
{step.status === "completed" ? "✓" : step.status === "inProgress" ? "●" : "○"}
180+
{step.status === "completed" ? (
181+
<CheckIcon />
182+
) : step.status === "inProgress" ? (
183+
<CircleDotIcon />
184+
) : (
185+
<CircleIcon />
186+
)}
181187
</ComposerBanner.Icon>
182188
<ComposerBanner.Content
183189
className={cn(
190+
"block wrap-anywhere",
184191
step.status === "completed"
185192
? "text-muted-foreground/55"
186193
: step.status === "inProgress"
187194
? "text-foreground/90"
188195
: "text-muted-foreground/70",
189196
)}
190197
>
198+
<span className="sr-only">{taskStatusLabels[step.status]}: </span>
191199
{step.step}
192200
</ComposerBanner.Content>
193201
<ComposerBanner.Actions>
194-
<span className="text-[10px] text-muted-foreground">
195-
{taskStatusLabels[step.status]}
196-
</span>
197202
<span
198-
className="w-10 text-right text-[10px] text-muted-foreground/45 tabular-nums"
203+
className="w-12 text-right text-[10px]/4 text-muted-foreground/45 tabular-nums"
199204
data-composer-task-duration="true"
200205
>
201206
{step.durationMs !== undefined

0 commit comments

Comments
 (0)