mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix input form label overflow (#4266)
This commit is contained in:
@@ -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.description && <QuestionTip ml={1} label={input.description} />}
|
{input.label}
|
||||||
|
{input.description && <QuestionTip ml={1} label={input.description} />}
|
||||||
|
</FormLabel>
|
||||||
</Flex>
|
</Flex>
|
||||||
{input.type === FlowNodeInputTypeEnum.input && (
|
{input.type === FlowNodeInputTypeEnum.input && (
|
||||||
<MyTextarea
|
<MyTextarea
|
||||||
|
Reference in New Issue
Block a user