diff --git a/src/lib/HowView.svelte b/src/lib/HowView.svelte index 64f462e..1983e91 100644 --- a/src/lib/HowView.svelte +++ b/src/lib/HowView.svelte @@ -19,6 +19,7 @@ $: parent = $org.getHowParent(how.id); $: index = parent?.how.indexOf(how.id) ?? -1; $: length = parent?.how.length ?? -1; + $: subhows = how.how.map((h) => $org.getHow(h)).filter((h) => h !== undefined); const org = getOrg(); const db = getDB(); @@ -264,11 +265,13 @@ {/if} -
- {#each how.how.map((h) => $org.getHow(h)).filter((h) => h !== undefined) as subhow (subhow.id)} - - {/each} -
+ {#if subhows.length > 0} +
+ {#each subhows as subhow (subhow.id)} + + {/each} +
+ {/if} diff --git a/src/routes/org/[orgid]/process/[processid]/+page.svelte b/src/routes/org/[orgid]/process/[processid]/+page.svelte index b0e87e3..6da67b8 100644 --- a/src/routes/org/[orgid]/process/[processid]/+page.svelte +++ b/src/routes/org/[orgid]/process/[processid]/+page.svelte @@ -367,6 +367,6 @@ margin-block-start: calc(2 * var(--padding)); display: flex; flex-direction: column; - gap: var(--padding); + gap: 1em; }