Fix: Bugs fixed (#13086)

### What problem does this PR solve?

Fix: Bugs fixed
- metadata icon error
- search page's image not display

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-02-10 14:04:50 +08:00
committed by GitHub
parent 141157f529
commit 4186821de8
2 changed files with 14 additions and 7 deletions

View File

@@ -1,5 +1,10 @@
import { setInitialChatVariableEnabledFieldValue } from '@/utils/chat';
import { Circle, CircleSlash2 } from 'lucide-react';
import {
Circle,
CircleDashed,
CircleDotDashed,
CircleSlash2,
} from 'lucide-react';
import { ChatVariableEnabledField, variableEnabledFieldMap } from './chat';
export enum ProgrammingLanguage {
@@ -173,12 +178,12 @@ export const SwitchOperatorOptions = [
{
value: ComparisonOperator.In,
label: 'in',
icon: <CircleSlash2 className="size-4" />,
icon: <CircleDotDashed className="size-4" />,
},
{
value: ComparisonOperator.NotIn,
label: 'notIn',
icon: <CircleSlash2 className="size-4" />,
icon: <CircleDashed className="size-4" />,
},
];

View File

@@ -201,9 +201,11 @@ export default function SearchingView({
<div key={index}>
<div className="w-full flex flex-col">
<div className="w-full highlightContent">
<ImageWithPopover
id={chunk.image_id || chunk.img_id}
></ImageWithPopover>
{(chunk.image_id || chunk.img_id) && (
<ImageWithPopover
id={chunk.image_id || chunk.img_id}
></ImageWithPopover>
)}
<Popover>
<PopoverTrigger asChild>
<div
@@ -239,7 +241,7 @@ export default function SearchingView({
</div>
</div>
{index < chunks.length - 1 && (
<div className="w-full border-b border-border-default/80 mt-6"></div>
<div className="w-full border-b border-border-default/80 mt-6 mb-2"></div>
)}
</div>
);