diff --git a/plugins/workbench-resources/src/components/Navigator.svelte b/plugins/workbench-resources/src/components/Navigator.svelte index 7f6cb553a4..56282cd9ef 100644 --- a/plugins/workbench-resources/src/components/Navigator.svelte +++ b/plugins/workbench-resources/src/components/Navigator.svelte @@ -151,6 +151,7 @@ icon={special.icon} selected={menuSelection ? false : special.id === currentSpecial} {disabled} + indent={special.nestingLevel === 1 ? 'ml-2' : (special.nestingLevel === 2 && 'ml-4') || undefined} /> {/await} diff --git a/plugins/workbench/src/index.ts b/plugins/workbench/src/index.ts index c6569bc9b5..1cbb3db872 100644 --- a/plugins/workbench/src/index.ts +++ b/plugins/workbench/src/index.ts @@ -85,6 +85,7 @@ export interface SpecialNavModel { // If defined, will be used to find spaces for visibleIf spaceClass?: Ref> checkIsDisabled?: Resource<() => Promise> + nestingLevel?: number } /**