Skip to content

Commit be8474a

Browse files
1 parent f974add commit be8474a

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
"react-query": "npm:@tanstack/react-query@5.77.0",
106106
"react-router-dom": "6.26.2",
107107
"react-syntax-highlighter": "15.6.1",
108+
"react-textarea-autosize": "8.5.9",
108109
"react-virtualized-auto-sizer": "1.0.24",
109110
"react-window": "1.8.11",
110111
"recharts": "2.15.0",

site/pnpm-lock.yaml

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/pages/TasksPage/TasksPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import type { FC, PropsWithChildren, ReactNode } from "react";
4949
import { Helmet } from "react-helmet-async";
5050
import { useMutation, useQuery, useQueryClient } from "react-query";
5151
import { Link as RouterLink } from "react-router-dom";
52+
import TextareaAutosize from "react-textarea-autosize";
5253
import { cn } from "utils/cn";
5354
import { pageTitle } from "utils/page";
5455
import { relativeTime } from "utils/time";
@@ -204,15 +205,15 @@ const TaskForm: FC<TaskFormProps> = ({ templates }) => {
204205
<label htmlFor="prompt" className="sr-only">
205206
Prompt
206207
</label>
207-
<textarea
208+
<TextareaAutosize
208209
required
209210
id="prompt"
210211
name="prompt"
211212
placeholder="Write an action for your AI agent to perform..."
212213
className={`border-0 resize-none w-full h-full bg-transparent rounded-lg outline-none flex min-h-[60px]
213214
text-sm shadow-sm text-content-primary placeholder:text-content-secondary md:text-sm`}
214215
/>
215-
<div className="flex items-center justify-between">
216+
<div className="flex items-center justify-between pt-2">
216217
<Select name="templateID" defaultValue={templates[0].id} required>
217218
<SelectTrigger className="w-52 text-xs [&_svg]:size-icon-xs border-0 bg-surface-secondary h-8 px-3">
218219
<SelectValue placeholder="Select a template" />

0 commit comments

Comments
 (0)