Skip to content

Commit 11ddb98

Browse files
committed
align examples in size and configuration
1 parent f8bf6c7 commit 11ddb98

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/extensions/react-flow/edges/stories/EdgeDefaultV12.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const EdgeDefault = (args: Edge) => {
5252
},
5353
],
5454
},
55-
position: { x: 50, y: 0 },
55+
position: { x: 50, y: 200 },
5656
},
5757
{
5858
id: args.target,
@@ -74,7 +74,7 @@ const EdgeDefault = (args: Edge) => {
7474
},
7575
],
7676
},
77-
position: { x: 300, y: 0 },
77+
position: { x: 600, y: 200 },
7878
},
7979
]);
8080

@@ -113,7 +113,6 @@ const EdgeDefault = (args: Edge) => {
113113
onNodesChange={onNodesChange}
114114
onEdgesChange={onEdgesChange}
115115
onConnect={onConnect}
116-
fitView
117116
/>
118117
</div>
119118
);

src/extensions/react-flow/nodes/stories/NodeContentV12.stories.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useCallback, useEffect, useState } from "react";
22
import { LoremIpsum, loremIpsum } from "react-lorem-ipsum";
33
import { Meta, StoryFn } from "@storybook/react";
4-
import { Node, Position, ReactFlow, ReactFlowProvider, useNodesState } from "@xyflow/react";
4+
import { Node, ReactFlow, ReactFlowProvider, useNodesState } from "@xyflow/react";
55

66
import { Definitions } from "../../../../common/Intent";
77
import { NodeDefaultV12 } from "../NodeDefaultV12";
@@ -248,11 +248,9 @@ Default.args = {
248248
{
249249
type: "target",
250250
tooltip: "this is a target handle",
251-
position: Position.Left,
252251
},
253252
{
254253
type: "source",
255-
position: Position.Bottom,
256254
data: { extendedTooltip: "this is a source handle" },
257255
},
258256
],

0 commit comments

Comments
 (0)