add padding in tree components

This commit is contained in:
Hubert Sokołowski
2021-05-08 16:35:12 +02:00
parent 24871bfc8e
commit dbf413a5d3

View File

@@ -141,15 +141,15 @@ const Tree = ({ options }) => {
<Predicter tree={root} testSet={testSet} onChange={predict} /> */}
</Stack>
{isLoading && <Spinner size="xl" />}
<h1>Tree nodes:</h1>
<Box>
<Box p={5}>
<h1>Tree nodes:</h1>
{!root ? (
<p>No tree to show</p>
) : (
<Box d="flex" flexDirection="row">
<Node node={root} onChange={() => {}} requestChildChange={requestChildChange} side={true} />
{/* <Node node={root} onChange={() => {}} requestChildChange={requestChildChange} side={true} /> */}
</Box>
<Node node={root} onChange={() => {}} requestChildChange={requestChildChange} side={true} />
// <Box d="flex" flexDirection="row">
// {/* <Node node={root} onChange={() => {}} requestChildChange={requestChildChange} side={true} /> */}
// </Box>
)}
</Box>
</div>