responsive links hehehe

This commit is contained in:
1ilit 2023-09-19 15:47:11 +03:00
parent 7dd588378b
commit 45963eafdb
2 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ export default function Canvas(props) {
{props.rectangles.map((rectangle) => (
<Rect
key={rectangle.id}
id={rectangle.id}
x={rectangle.x}
y={rectangle.y}
label={rectangle.label}

View File

@ -65,7 +65,7 @@ const Rect = (props) => {
props.setLinks([
...props.links,
{
rect: `${props.id}`,
rect: props.id,
node: Node.LEFT,
x: props.x,
y: props.y + props.height / 2,