Update NodeGraphOverlay.tsx

Graph overlay was expanding off the screen to the size of the prompt
This commit is contained in:
mickr777 2023-06-07 14:49:03 +10:00 committed by GitHub
parent 79198b4bba
commit 08e66c5451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,14 +13,16 @@ const NodeGraphOverlay = () => {
as="pre" as="pre"
fontFamily="monospace" fontFamily="monospace"
position="absolute" position="absolute"
top={10} top={2}
right={2} right={2}
opacity={0.7} opacity={0.7}
background="base.800" background="base.800"
p={2} p={2}
maxHeight={500} maxHeight={500}
maxWidth={500}
overflowY="scroll" overflowY="scroll"
borderRadius="md" borderRadius="md"
boxShadow="0px 10px 10px rgba(0, 0, 0, 0.25)"
> >
{JSON.stringify(graph, null, 2)} {JSON.stringify(graph, null, 2)}
</Box> </Box>