1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

upgrade react-flow & fix rendering of AS graph

This commit is contained in:
checktheroads
2021-04-24 11:15:01 -07:00
parent aca3457011
commit 879b750b58
4 changed files with 285 additions and 76 deletions

View File

@@ -19,7 +19,7 @@ export const Chart: React.FC<TChart> = (props: TChart) => {
return (
<ReactFlowProvider>
<Box boxSize="100%" zIndex={1}>
<Box w="100%" h={{ base: '100vh', lg: '70vh' }} zIndex={1}>
<ReactFlow
snapToGrid
elements={elements}

View File

@@ -31,7 +31,7 @@ export const Path: React.FC<TPath> = (props: TPath) => {
<ModalOverlay />
<ModalContent
bg={bg}
mt={{ base: 4, lg: '' }}
minH={{ lg: '80vh' }}
maxH={{ base: '80%', lg: '60%' }}
maxW={{ base: '100%', lg: '80%' }}
>