mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 23:24:05 +08:00
Fix: Increase the height of the system prompt text area in Memory. (#17793)
This commit is contained in:
@@ -101,6 +101,7 @@ export interface FormFieldConfig {
|
||||
* fields like api_key / instance_name / base_url / group_id.
|
||||
*/
|
||||
autoComplete?: string;
|
||||
fieldConfig?: Record<string, any>;
|
||||
}
|
||||
|
||||
// Component props interface
|
||||
@@ -449,9 +450,11 @@ export const RenderField = ({
|
||||
: fieldProps;
|
||||
return (
|
||||
<Textarea
|
||||
{...field.fieldConfig}
|
||||
{...finalFieldProps}
|
||||
placeholder={field.placeholder}
|
||||
disabled={field.disabled}
|
||||
// resize="vertical"
|
||||
// className="resize-none"
|
||||
/>
|
||||
);
|
||||
@@ -470,7 +473,6 @@ export const RenderField = ({
|
||||
? {
|
||||
...fieldProps,
|
||||
onChange: (value: string) => {
|
||||
console.log('select value', value);
|
||||
if (fieldProps.onChange) {
|
||||
fieldProps.onChange(value);
|
||||
}
|
||||
|
||||
@@ -143,6 +143,13 @@ export const AdvancedSettingsForm = () => {
|
||||
horizontal: true,
|
||||
placeholder: t('memory.config.systemPromptPlaceholder'),
|
||||
required: false,
|
||||
fieldConfig: {
|
||||
resize: 'vertical',
|
||||
autoSize: {
|
||||
minRows: 8,
|
||||
maxRows: 16,
|
||||
},
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<RenderField
|
||||
@@ -154,6 +161,13 @@ export const AdvancedSettingsForm = () => {
|
||||
horizontal: true,
|
||||
placeholder: t('memory.config.userPromptPlaceholder'),
|
||||
required: false,
|
||||
fieldConfig: {
|
||||
resize: 'vertical',
|
||||
autoSize: {
|
||||
minRows: 6,
|
||||
maxRows: 12,
|
||||
},
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user