diff --git a/src/components/agent-tasks/batch-card.tsx b/src/components/agent-tasks/batch-card.tsx index 6b861591..606be90e 100644 --- a/src/components/agent-tasks/batch-card.tsx +++ b/src/components/agent-tasks/batch-card.tsx @@ -127,7 +127,7 @@ export function BatchCard({ return ( - - {open && ( - - - - )} - + {open && ( + + + + )} ); })} diff --git a/src/components/agent-tasks/step-stream.tsx b/src/components/agent-tasks/step-stream.tsx index 1f1a3cd3..6ddb0354 100644 --- a/src/components/agent-tasks/step-stream.tsx +++ b/src/components/agent-tasks/step-stream.tsx @@ -48,7 +48,7 @@ function StepRow({ step, animate }: { step: AgentStep; animate: boolean }) { { if (stepCount === 0) return; - endRef.current?.scrollIntoView({ - block: "end", + // Only the list scrolls; scrollIntoView would move the page too. + const box = endRef.current?.parentElement; + box?.scrollTo({ + top: box.scrollHeight, behavior: animate ? "smooth" : "auto", }); }, [stepCount, animate]); diff --git a/src/components/agent-tasks/task-composer.tsx b/src/components/agent-tasks/task-composer.tsx index 43125ac7..05ef2b2c 100644 --- a/src/components/agent-tasks/task-composer.tsx +++ b/src/components/agent-tasks/task-composer.tsx @@ -110,12 +110,12 @@ export function TaskComposer({ ref={promptRef} id={`${formId}-prompt`} variant="soft" - rows={3} + rows={2} value={prompt} maxLength={MAX_PROMPT_CHARS} placeholder={t("agent.tasks.promptPlaceholder")} data-slot="agent-task-prompt" - className="min-h-24 resize-none rounded-xl px-3.5 py-3 text-sm leading-relaxed" + className="min-h-20 resize-none rounded-xl px-3.5 py-3 text-sm leading-relaxed" onChange={(event) => { setPrompt(event.target.value); }} diff --git a/src/components/agent-tasks/tasks-panel.tsx b/src/components/agent-tasks/tasks-panel.tsx index 3dad9ed6..b759991d 100644 --- a/src/components/agent-tasks/tasks-panel.tsx +++ b/src/components/agent-tasks/tasks-panel.tsx @@ -53,7 +53,9 @@ export function AgentTasksPanel({ }, [batches, picked]); return ( -
@@ -85,7 +87,7 @@ export function AgentTasksPanel({

) : ( -
+
{batches.map((batch) => ( @@ -110,7 +112,7 @@ export function AgentTasksPanel({
{selection && ( -
+
)} -
+ ); }