Skip to content

Commit

Permalink
adjusted zoom, spacing on table nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnybryan committed Dec 17, 2021
1 parent 60ef599 commit 328b527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/Containers/FlowContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const FlowContainer = ({ data, schema, resolvers }: Props) => {

// declare coordinate variables for table node positions/mapping
let positionX = 100;
let positionY = 225;
let positionY = 250;
let row = 0;

// Iterate through each table...
Expand Down Expand Up @@ -114,7 +114,7 @@ const FlowContainer = ({ data, schema, resolvers }: Props) => {
row += 1;
positionY += 600;
if (row % 2 === 0) {
positionY = 225;
positionY = 250;
positionX += 400;
}

Expand All @@ -124,7 +124,7 @@ const FlowContainer = ({ data, schema, resolvers }: Props) => {

return (
<div>
<ReactFlow elements={elements} nodeTypes={nodeTypes} defaultZoom={0.66}>
<ReactFlow elements={elements} nodeTypes={nodeTypes} defaultZoom={0.6}>
<Background
style={{backgroundColor: '#fafafa'}}
variant="dots"
Expand Down

0 comments on commit 328b527

Please sign in to comment.