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,9 +112,9 @@ 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}
> >
<Flex flexDir="column" w="full" gap={1}>
<EditableFieldTitle <EditableFieldTitle
nodeId={nodeId} nodeId={nodeId}
fieldName={fieldName} fieldName={fieldName}
@ -123,6 +123,7 @@ const InputField = ({ nodeId, fieldName }: Props) => {
withTooltip withTooltip
/> />
<InputFieldRenderer nodeId={nodeId} fieldName={fieldName} /> <InputFieldRenderer nodeId={nodeId} fieldName={fieldName} />
</Flex>
</InvControl> </InvControl>
)} )}
</FieldContextMenu> </FieldContextMenu>