diff --git a/invokeai/frontend/web/src/features/nodes/components/fields/StringInputFieldComponent.tsx b/invokeai/frontend/web/src/features/nodes/components/fields/StringInputFieldComponent.tsx index 48ca28f0fc..be61283be9 100644 --- a/invokeai/frontend/web/src/features/nodes/components/fields/StringInputFieldComponent.tsx +++ b/invokeai/frontend/web/src/features/nodes/components/fields/StringInputFieldComponent.tsx @@ -1,24 +1,17 @@ -import { memo, ChangeEvent } from 'react'; -import { Textarea, Input } from '@chakra-ui/react'; +import { Input, Textarea } from '@chakra-ui/react'; import { useAppDispatch } from 'app/store/storeHooks'; import { fieldValueChanged } from 'features/nodes/store/nodesSlice'; import { StringInputFieldTemplate, StringInputFieldValue, } from 'features/nodes/types/types'; +import { ChangeEvent, memo } from 'react'; import { FieldComponentProps } from './types'; -const FIELD_PADDING = 20; - const StringInputFieldComponent = ( - props: FieldComponentProps< - StringInputFieldValue, - StringInputFieldTemplate - > & { - nodeWidth: number; - } + props: FieldComponentProps ) => { - const { nodeId, field, nodeWidth } = props; + const { nodeId, field } = props; const dispatch = useAppDispatch(); const handleValueChanged = ( @@ -33,30 +26,10 @@ const StringInputFieldComponent = ( ); }; - const textareaWidth = nodeWidth - FIELD_PADDING; - - const textareaFieldNames = ['prompt', 'text']; - - return ( - <> - {textareaFieldNames.includes(field.name.toLowerCase()) ? ( -