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" justifyContent="flex-start"
gap={1} gap={1}
h="full" h="full"
w="full"
> >
<EditablePreview <EditablePreview
fontWeight="semibold" fontWeight="semibold"

View File

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