Manage layout

This commit is contained in:
1ilit
2023-09-19 15:48:34 +03:00
parent b0737e1a89
commit a2aa12f598
4 changed files with 322 additions and 195 deletions

View File

@@ -5,7 +5,7 @@ export default function Relationship(props) {
const calcPath = (x1, x2, y1, y2) => {
let r = 16;
const offsetX = 8;
const tableWidth = 240;
const tableWidth = 220;
const midX = (x2 + x1 + tableWidth) / 2;
const endX = x2 + tableWidth < x1 ? x2 + tableWidth - offsetX * 2 : x2;