fix: expand model if depth <= defaultModelExpandDepth (#8186)

This commit is contained in:
twjasa
2022-09-21 19:57:37 -03:00
committed by GitHub
parent 5eeb98b8d6
commit 6c03465257
3 changed files with 12 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ export default class Primitive extends Component {
</span>
return <span className="model">
<ModelCollapse title={titleEl} expanded={depth >= expandDepth} collapsedContent=" " hideSelfOnExpand={expandDepth !== depth}>
<ModelCollapse title={titleEl} expanded={depth <= expandDepth} collapsedContent="[...]" hideSelfOnExpand={expandDepth !== depth}>
<span className="prop">
{name && depth > 1 && <span className="prop-name">{title}</span>}
<span className="prop-type">{type}</span>