Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola committed Dec 27, 2024
1 parent 51b3afb commit 2d05ddb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
47 changes: 24 additions & 23 deletions web/app/components/workflow/nodes/document-extractor/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Panel: FC<NodePanelProps<DocExtractorNodeType>> = ({
} = useConfig(id, data)

return (
<div className='mt-2'>
<div className='pt-2'>
<div className='px-4 pb-4 space-y-4'>
<Field
title={t(`${i18nPrefix}.inputVar`)}
Expand All @@ -72,28 +72,29 @@ const Panel: FC<NodePanelProps<DocExtractorNodeType>> = ({
</div>
</>
</Field>
</div>
<Split />
<div
className='ml-4 leading-[18px] text-[13px] font-semibold text-gray-800'>{t(`${i18nPrefix}.output_format`)}</div>
<div className='p-4 ml-4 mr-4 mt-2 border rounded-lg'>
<RadioGroup
className='space-x-3'
options={[
{
label: t(`${i18nPrefix}.output_image`),
value: 'image',
},
{
label: t(`${i18nPrefix}.output_text`),
value: 'text',
},
]}
value={inputs.output_image ? 'image' : 'text'}
onChange={val => handleConfigChanges({
output_image: val === 'image',
})}
/>
<Field
title={t(`${i18nPrefix}.output_format`)}
>
<>
<RadioGroup
className='space-x-3'
options={[
{
label: t(`${i18nPrefix}.output_text`),
value: 'text',
},
{
label: t(`${i18nPrefix}.output_image`),
value: 'image',
},
]}
value={inputs.output_image ? 'image' : 'text'}
onChange={val => handleConfigChanges({
output_image: val === 'image',
})}
/>
</>
</Field>
</div>
<Split />
<div>
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/en-US/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ const translation = {
},
docExtractor: {
inputVar: 'Input Variable',
output_image: 'Image output (only pdf)',
output_image: 'Image output (PDF only)',
output_text: 'Text output',
output_format: 'output format',
outputVars: {
Expand Down

0 comments on commit 2d05ddb

Please sign in to comment.