fix(ui): fix node styles

Got borked when adjusting control adapter styling. Should revisit this later.
This commit is contained in:
psychedelicious 2024-01-03 07:45:54 +11:00
parent 989aaedc7f
commit baa5f75976
2 changed files with 12 additions and 10 deletions

View File

@ -89,6 +89,7 @@ const EditableFieldTitle = forwardRef((props: Props, ref) => {
justifyContent="flex-start"
gap={1}
h="full"
w="full"
>
<EditablePreview
fontWeight="semibold"

View File

@ -112,17 +112,18 @@ const InputField = ({ nodeId, fieldName }: Props) => {
isInvalid={isMissingInput}
isDisabled={isConnected}
orientation="vertical"
ps={fieldTemplate.input === 'direct' ? 0 : 2}
pe={2}
px={2}
>
<EditableFieldTitle
nodeId={nodeId}
fieldName={fieldName}
kind="input"
isMissingInput={isMissingInput}
withTooltip
/>
<InputFieldRenderer nodeId={nodeId} fieldName={fieldName} />
<Flex flexDir="column" w="full" gap={1}>
<EditableFieldTitle
nodeId={nodeId}
fieldName={fieldName}
kind="input"
isMissingInput={isMissingInput}
withTooltip
/>
<InputFieldRenderer nodeId={nodeId} fieldName={fieldName} />
</Flex>
</InvControl>
)}
</FieldContextMenu>