From 76471bfcc4c6af32709b6d98754126a1e7c80a46 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 13 May 2022 10:12:16 +0100 Subject: [PATCH] Add icons to component list and update style of nav items --- .../DatasourceNavigator.svelte | 5 +-- .../src/components/common/NavItem.svelte | 36 +++++++++++++++---- .../navigation/ComponentListPanel.svelte | 2 +- .../navigation/ComponentTree.svelte | 20 ++++++++++- 4 files changed, 52 insertions(+), 11 deletions(-) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte index 453cdced51..9faf00a199 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte @@ -157,7 +157,8 @@ diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte index f9c5d82753..8f9813c9af 100644 --- a/packages/builder/src/components/common/NavItem.svelte +++ b/packages/builder/src/components/common/NavItem.svelte @@ -46,7 +46,7 @@ class:border class:selected class:withActions - style={`padding-left: calc(var(--spacing-l) + ${indentLevel * 14}px)`} + style={`padding-left: calc(${indentLevel * 14}px)`} {draggable} on:dragend on:dragstart @@ -59,7 +59,13 @@ >