Skip to content

Commit aba70ea

Browse files
fix(ui): field handle positioning for non-batch fields
Accidentally overwrote some reactflow styles which caused field handles to be positioned differently for non-batch fields. Just a minor visual issue.
1 parent 4b67175 commit aba70ea

File tree

1 file changed

+4
-1
lines changed
  • invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields

1 file changed

+4
-1
lines changed

invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/FieldHandle.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ const FieldHandle = (props: FieldHandleProps) => {
3838
borderColor: color,
3939
borderRadius: isModelType || type.batch ? 4 : '100%',
4040
zIndex: 1,
41-
transform: type.batch ? 'rotate(45deg) translateX(-0.3rem) translateY(-0.3rem)' : 'none',
4241
transformOrigin: 'center',
4342
};
4443

44+
if (type.batch) {
45+
s.transform = 'rotate(45deg) translateX(-0.3rem) translateY(-0.3rem)';
46+
}
47+
4548
if (handleType === 'target') {
4649
s.insetInlineStart = '-1rem';
4750
} else {

0 commit comments

Comments
 (0)