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

@@ -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]" />}
/>
);
};