fix: Sys Diagram clipped if wider than container

Signed-off-by: Deepak Bhardwaj <Deepak.Bhardwaj@outlook.com>
Signed-off-by: Deepak Bhardwaj <62239457+deepak-bhardwaj-ps@users.noreply.github.com>
Signed-off-by: Deepak Bhardwaj <deepak.bhardwaj@outlook.com>
This commit is contained in:
Deepak Bhardwaj
2021-06-25 21:21:11 +05:30
committed by blam
parent 1d1b197a65
commit 4742508f06
2 changed files with 3 additions and 1 deletions
@@ -262,7 +262,7 @@ export function DependencyGraph({
<svg
ref={containerRef}
{...svgProps}
width={maxWidth}
width="100%"
height={maxHeight}
viewBox={`0 0 ${maxWidth} ${maxHeight}`}
>
@@ -262,6 +262,8 @@ export function SystemDiagramCard() {
nodeMargin={10}
direction={DependencyGraphTypes.Direction.BOTTOM_TOP}
renderNode={RenderNode}
paddingX={50}
paddingY={50}
/>
<Box m={1} />
<Typography