Commit a680b565 by heheer Committed by archer

fix input form label overflow (#4266)

parent e812ad6e
...@@ -268,9 +268,11 @@ const RenderUserFormInteractive = React.memo(function RenderFormInput({ ...@@ -268,9 +268,11 @@ const RenderUserFormInteractive = React.memo(function RenderFormInput({
{interactive.params.description && <Markdown source={interactive.params.description} />} {interactive.params.description && <Markdown source={interactive.params.description} />}
{interactive.params.inputForm?.map((input) => ( {interactive.params.inputForm?.map((input) => (
<Box key={input.label}> <Box key={input.label}>
<Flex mb={1} alignItems={'center'}> <Flex mb={1} alignItems={'center'} w={'full'}>
<FormLabel required={input.required}>{input.label}</FormLabel> <FormLabel required={input.required} w={'full'} whiteSpace={'pre-wrap'}>
{input.label}
{input.description && <QuestionTip ml={1} label={input.description} />} {input.description && <QuestionTip ml={1} label={input.description} />}
</FormLabel>
</Flex> </Flex>
{input.type === FlowNodeInputTypeEnum.input && ( {input.type === FlowNodeInputTypeEnum.input && (
<MyTextarea <MyTextarea
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment