Fix: Pipeline page style optimizations (#14128)

### What problem does this PR solve?

Fix: Pipeline page style optimizations

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-04-15 19:05:54 +08:00
committed by GitHub
parent c93ec0a1f3
commit dce0b1c030
5 changed files with 51 additions and 37 deletions

View File

@@ -21,6 +21,7 @@ type RAGFlowFormItemProps = {
horizontal?: boolean;
required?: boolean;
labelClassName?: string;
valueClassName?: string;
className?: string;
} & Pick<UseControllerProps<any>, 'rules'>;
@@ -32,6 +33,7 @@ export function RAGFlowFormItem({
horizontal = false,
required = false,
labelClassName,
valueClassName,
className,
rules,
}: RAGFlowFormItemProps) {
@@ -60,10 +62,14 @@ export function RAGFlowFormItem({
</FormLabel>
)}
<div
className={cn('flex flex-col', {
'w-full': !horizontal,
'w-3/4': horizontal,
})}
className={cn(
'flex flex-col',
{
'w-full': !horizontal,
'w-3/4': horizontal,
},
valueClassName,
)}
>
<FormControl>
{typeof children === 'function'