Fix indentation level in screen and layout trees

This commit is contained in:
Andrew Kingston 2020-12-08 15:11:26 +00:00
parent d223515d6c
commit e16e909c65
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@
on:drop={dragDropStore.actions.drop} on:drop={dragDropStore.actions.drop}
text={isScreenslot(component._component) ? 'Screenslot' : component._instanceName} text={isScreenslot(component._component) ? 'Screenslot' : component._instanceName}
withArrow withArrow
indentLevel={level + 3} indentLevel={level + 1}
selected={$store.selectedComponentId === component._id}> selected={$store.selectedComponentId === component._id}>
<ComponentDropdownMenu {component} /> <ComponentDropdownMenu {component} />
</NavItem> </NavItem>

View File

@ -50,6 +50,7 @@
</NavItem> </NavItem>
{#if selectedScreen?._id === screenId} {#if selectedScreen?._id === screenId}
<ComponentTree <ComponentTree
level={1}
components={selectedScreen.props._children} components={selectedScreen.props._children}
currentComponent={$selectedComponent} currentComponent={$selectedComponent}
{dragDropStore} /> {dragDropStore} />