Skip to content

Commit 5626880

Browse files
Merge pull request #125 from festim-dev/amp-handle-size
Fixed handle size amplifier
2 parents 25bc32f + eee7a25 commit 5626880

File tree

1 file changed

+4
-48
lines changed

1 file changed

+4
-48
lines changed

src/components/nodes/AmplifierNode.jsx

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,8 @@ export function AmplifierNode({ data }) {
3030
</div>
3131

3232

33-
<Handle
34-
type="target"
35-
position="left"
36-
style={{
37-
background: '#555',
38-
left: '-6px',
39-
top: '50%',
40-
transform: 'translateY(-50%)',
41-
width: '12px',
42-
height: '12px'
43-
}}
44-
/>
45-
<Handle
46-
type="source"
47-
position="right"
48-
style={{
49-
background: '#555',
50-
right: '-6px',
51-
top: '50%',
52-
transform: 'translateY(-50%)',
53-
width: '12px',
54-
height: '12px'
55-
}}
56-
/>
33+
<Handle type="target" position="left" style={{ background: '#555' }} />
34+
<Handle type="source" position="right" style={{ background: '#555' }} />
5735
</div>
5836
);
5937
}
@@ -87,30 +65,8 @@ export function AmplifierNodeReverse({ data }) {
8765
</div>
8866

8967

90-
<Handle
91-
type="target"
92-
position="right"
93-
style={{
94-
background: '#555',
95-
right: '-6px',
96-
top: '50%',
97-
transform: 'translateY(-50%)',
98-
width: '12px',
99-
height: '12px'
100-
}}
101-
/>
102-
<Handle
103-
type="source"
104-
position="left"
105-
style={{
106-
background: '#555',
107-
left: '-6px',
108-
top: '50%',
109-
transform: 'translateY(-50%)',
110-
width: '12px',
111-
height: '12px'
112-
}}
113-
/>
68+
<Handle type="target" position="right" style={{ background: '#555' }} />
69+
<Handle type="source" position="left" style={{ background: '#555' }} />
11470
</div>
11571
);
11672
}

0 commit comments

Comments
 (0)