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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user