GraphContent: prevent grid blowout

This commit is contained in:
Matilde Park 2021-05-08 12:39:44 -04:00
parent b42553ed24
commit 815d565e07

View File

@ -376,7 +376,14 @@ const renderers = {
);
},
root: ({ tall, children }) =>
tall ? <Col display='grid' style={{ 'row-gap': '1rem' }}>{children}</Col> : <Box>{children}</Box>,
tall
? <Box
display='grid'
style={{ 'gridTemplateColumns': 'minmax(0,1fr)', 'rowGap': '1rem' }}
>
{children}
</Box>
: <Box>{children}</Box>,
text: ({ value }) => value,
};