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 labelClass = 'mb-2 text-token-text-primary block font-medium';
|
||||||
const inputClass = cn(
|
const inputClass = cn(
|
||||||
defaultTextProps,
|
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,
|
removeFocusOutlines,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -235,13 +235,12 @@ export default function AgentConfig() {
|
||||||
name="description"
|
name="description"
|
||||||
control={control}
|
control={control}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<input
|
<textarea
|
||||||
{...field}
|
{...field}
|
||||||
value={field.value ?? ''}
|
value={field.value ?? ''}
|
||||||
maxLength={512}
|
maxLength={512}
|
||||||
className={inputClass}
|
className={inputClass}
|
||||||
id="description"
|
id="description"
|
||||||
type="text"
|
|
||||||
placeholder={localize('com_agents_description_placeholder')}
|
placeholder={localize('com_agents_description_placeholder')}
|
||||||
aria-label="Agent description"
|
aria-label="Agent description"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue