From 0eb6485bca3d7c1e73f9dcfd22089c18423ac78f Mon Sep 17 00:00:00 2001 From: Denis Bunakalya Date: Wed, 3 May 2023 16:48:28 +0300 Subject: [PATCH] tsk-1371 Support indent for specials (#3128) Signed-off-by: Denis Bunakalya --- plugins/workbench-resources/src/components/Navigator.svelte | 1 + plugins/workbench/src/index.ts | 1 + 2 files changed, 2 insertions(+) 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 } /**