mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-31 04:59:24 +08:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user