mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
feat: Update AgentConfig to use textarea for description and adjust input class
This commit is contained in:
parent
b06e741cb2
commit
e60fa617e8
1 changed files with 2 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ import MCPTools from './MCPTools';
|
|||
const labelClass = 'mb-2 text-token-text-primary block font-medium';
|
||||
const inputClass = cn(
|
||||
defaultTextProps,
|
||||
'flex w-full px-3 py-2 border-border-light bg-surface-secondary focus-visible:ring-2 focus-visible:ring-ring-primary',
|
||||
'flex w-full px-3 py-2 border-border-light bg-surface-secondary focus-visible:ring-2 focus-visible:ring-ring-primary resize-none',
|
||||
removeFocusOutlines,
|
||||
);
|
||||
|
||||
|
|
@ -235,13 +235,12 @@ export default function AgentConfig() {
|
|||
name="description"
|
||||
control={control}
|
||||
render={({ field }) => (
|
||||
<input
|
||||
<textarea
|
||||
{...field}
|
||||
value={field.value ?? ''}
|
||||
maxLength={512}
|
||||
className={inputClass}
|
||||
id="description"
|
||||
type="text"
|
||||
placeholder={localize('com_agents_description_placeholder')}
|
||||
aria-label="Agent description"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue