mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
GraphContent: prevent grid blowout
This commit is contained in:
parent
b42553ed24
commit
815d565e07
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user