mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): fix handle
This commit is contained in:
@@ -9,17 +9,12 @@ type InputHandleProps = {
|
||||
|
||||
export const InputHandle = (props: InputHandleProps) => {
|
||||
const { nodeId, field } = props;
|
||||
const { title, type, description } = field;
|
||||
const { name, title, type, description } = field;
|
||||
return (
|
||||
<Tooltip
|
||||
key={type}
|
||||
label={`${title}: ${description}`}
|
||||
placement="start"
|
||||
hasArrow
|
||||
>
|
||||
<Tooltip key={name} label={`${title} (${type})`} placement="start" hasArrow>
|
||||
<Handle
|
||||
type="target"
|
||||
id={type}
|
||||
id={name}
|
||||
position={Position.Left}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
|
||||
@@ -10,17 +10,12 @@ type OutputHandleProps = {
|
||||
|
||||
export const OutputHandle = (props: OutputHandleProps) => {
|
||||
const { nodeId, field, top } = props;
|
||||
const { title, type, description } = field;
|
||||
const { name, title, type, description } = field;
|
||||
return (
|
||||
<Tooltip
|
||||
key={type}
|
||||
label={`${title}: ${description}`}
|
||||
placement="end"
|
||||
hasArrow
|
||||
>
|
||||
<Tooltip key={name} label={`${title} (${type})`} placement="end" hasArrow>
|
||||
<Handle
|
||||
type="target"
|
||||
id={type}
|
||||
id={name}
|
||||
position={Position.Right}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
|
||||
Reference in New Issue
Block a user