diff options
| author | 0x85FB9C51 <77808164+0x85FB9C51@users.noreply.github.com> | 2021-07-10 16:57:45 -0400 |
|---|---|---|
| committer | 0x85FB9C51 <77808164+0x85FB9C51@users.noreply.github.com> | 2021-07-10 16:57:45 -0400 |
| commit | a5c099cb5ae455064f65989dc977870ce2c3f7fc (patch) | |
| tree | ab92e6e9fb55b17cb4b65d42e6d11eaa8d9708aa /src/client/views/collections/schemaView/SchemaTable.tsx | |
| parent | dda6b85a142f5b47cb01e63777cc031aa556d491 (diff) | |
added indentation for visibility of hierarchy
Diffstat (limited to 'src/client/views/collections/schemaView/SchemaTable.tsx')
| -rw-r--r-- | src/client/views/collections/schemaView/SchemaTable.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/schemaView/SchemaTable.tsx b/src/client/views/collections/schemaView/SchemaTable.tsx index a735d4257..0d5c9e077 100644 --- a/src/client/views/collections/schemaView/SchemaTable.tsx +++ b/src/client/views/collections/schemaView/SchemaTable.tsx @@ -458,8 +458,9 @@ export class SchemaTable extends React.Component<SchemaTableProps> { expanded={expanded} resized={this.resized} onResizedChange={this.props.onResizedChange} + // if it has a child, render another table with the children SubComponent={!hasCollectionChild ? undefined : row => (row.original.type !== DocumentType.COL) ? (null) : - <div className="reactTable-sub"><SchemaTable {...this.props} Document={row.original} dataDoc={undefined} childDocs={undefined} /></div>} + <div style={{ paddingLeft: 57 + "px" }} className="reactTable-sub"><SchemaTable {...this.props} Document={row.original} dataDoc={undefined} childDocs={undefined} /></div>} />; } |
