mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-12 14:45:42 +08:00
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:
@@ -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" />,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user