Fix layout bug

This commit is contained in:
Martin McKeaveney 2020-02-24 17:35:15 +00:00 committed by GitHub
parent e88d3e821a
commit 94fb7d0663
1 changed files with 7 additions and 6 deletions

View File

@ -16,11 +16,12 @@
}) })
</script> </script>
<div <div>
class="budibase__nav-item" <div
on:click={() => store.selectExistingNode(node.nodeId)} on:click={() => store.selectExistingNode(node.nodeId)}
class:selected={navActive}> class="budibase__nav-item"
<div style="padding-left: {20 + level * 20}px"> style="padding-left: {20 + level * 20}px"
class:selected={navActive}>
{@html getIcon(icon, 12)} {@html getIcon(icon, 12)}
<span style="margin-left: 1rem">{node.name}</span> <span style="margin-left: 1rem">{node.name}</span>
</div> </div>
@ -34,4 +35,4 @@
<svelte:self node={index} level={level + 1} type="index" /> <svelte:self node={index} level={level + 1} type="index" />
{/each} {/each}
{/if} {/if}
</div> </div>