mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Modify the style of the canvas operator node #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
18
web/src/pages/agent/canvas/node/node-wrapper.tsx
Normal file
18
web/src/pages/agent/canvas/node/node-wrapper.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import { cn } from '@/lib/utils';
|
||||
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||||
|
||||
export function NodeWrapper({
|
||||
children,
|
||||
className,
|
||||
}: PropsWithChildren & HTMLAttributes<HTMLDivElement>) {
|
||||
return (
|
||||
<section
|
||||
className={cn(
|
||||
'bg-background-header-bar p-2.5 rounded-md w-[200px]',
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user