Fix: Issues and style fixes related to the 'Memory' page (#12469)

### What problem does this PR solve?

Fix:  Some bugs
- Issues and style fixes related to the 'Memory' page
- Data source icon replacement
- Build optimization

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-01-07 10:03:54 +08:00
committed by GitHub
parent 6814ace1aa
commit 2a4627d9a0
25 changed files with 239 additions and 51 deletions

View File

@ -97,6 +97,7 @@ export interface FormFieldConfig {
schema?: ZodSchema;
shouldRender?: (formValues: any) => boolean;
labelClassName?: string;
className?: string;
disabled?: boolean;
}

View File

@ -10,7 +10,10 @@ export const MoreButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
ref={ref}
variant="ghost"
size={size || 'icon'}
className={cn('invisible group-hover:visible size-3.5', className)}
className={cn(
'invisible group-hover:visible size-3.5 bg-transparent group-hover:bg-transparent',
className,
)}
{...props}
>
<Ellipsis />

View File

@ -45,7 +45,7 @@ export function RAGFlowFormItem({
<FormItem
className={cn(
{
'flex items-center w-full': horizontal,
'flex items-center w-full space-y-0': horizontal,
},
className,
)}

View File

@ -3,9 +3,12 @@ import * as React from 'react';
import { cn } from '@/lib/utils';
import { Eye, EyeOff, Search } from 'lucide-react';
import { useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
export interface InputProps
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> {
export interface InputProps extends Omit<
React.InputHTMLAttributes<HTMLInputElement>,
'prefix'
> {
value?: string | number | readonly string[] | undefined;
prefix?: React.ReactNode;
suffix?: React.ReactNode;
@ -157,8 +160,13 @@ export interface ExpandedInputProps extends InputProps {}
const ExpandedInput = Input;
const SearchInput = (props: InputProps) => {
const { t } = useTranslation();
return (
<Input {...props} prefix={<Search className="ml-2 mr-1 size-[1em]" />} />
<Input
placeholder={t('common.search')}
{...props}
prefix={<Search className="ml-2 mr-1 size-[1em]" />}
/>
);
};