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.
This commit is contained in:
psychedelicious
2025-01-21 11:07:17 +11:00
parent 4b67175b1b
commit aba70eacab

View File

@@ -38,10 +38,13 @@ const FieldHandle = (props: FieldHandleProps) => {
borderColor: color,
borderRadius: isModelType || type.batch ? 4 : '100%',
zIndex: 1,
transform: type.batch ? 'rotate(45deg) translateX(-0.3rem) translateY(-0.3rem)' : 'none',
transformOrigin: 'center',
};
if (type.batch) {
s.transform = 'rotate(45deg) translateX(-0.3rem) translateY(-0.3rem)';
}
if (handleType === 'target') {
s.insetInlineStart = '-1rem';
} else {