Add search for relationships

This commit is contained in:
1ilit
2023-09-19 15:48:32 +03:00
parent 4fec674ac6
commit 525ca9f5c7
5 changed files with 316 additions and 268 deletions

View File

@@ -12,12 +12,12 @@ export default function Editor(props) {
const [relationships, setRelationships] = useState([]);
const [areas, setAreas] = useState([]);
const [resize, setResize] = useState(false);
const [width, setWidth] = useState(320);
const [width, setWidth] = useState(340);
const dragHandler = (e) => {
if (!resize) return;
const w = e.clientX;
if (w > 320) setWidth(w);
if (w > 340) setWidth(w);
};
return (