Skip to content

Commit

Permalink
fix: set canvas width
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS committed Jul 29, 2024
1 parent b8ad67c commit da2a63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Graph<T>(props: GraphProps<T>) {
};
}, [data, opts, shapes]);

return <div id={containerId} ref={containerRef} style={{height: '100vh'}} />;
return <div id={containerId} ref={containerRef} style={{height: '100vh', width: '100vw'}} />;
}

export const renderExplainNode = (node: GraphNode): string => {
Expand Down

0 comments on commit da2a63a

Please sign in to comment.