diff --git a/src/App.svelte b/src/App.svelte index ecc0258..6a3f4bd 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,7 @@ - {#if hastiers} + - {/if} Content: {#if document.location.protocol.substring(0,4) != "file"} diff --git a/src/SpHasCandidates.svelte b/src/SpHasCandidates.svelte index c257c18..f078b4d 100644 --- a/src/SpHasCandidates.svelte +++ b/src/SpHasCandidates.svelte @@ -19,10 +19,11 @@ } - +{#if candidates.length > 0} Add new... {#each candidates as tier (tier.file)} {tier.file} {#if tier.title.length < 70}({tier.title}){:else}({tier.title.slice(0, 68) + '…'}){/if} {/each} +{/if} diff --git a/src/SpHasTiers.svelte b/src/SpHasTiers.svelte index 34fcfbe..50aa774 100644 --- a/src/SpHasTiers.svelte +++ b/src/SpHasTiers.svelte @@ -20,7 +20,7 @@ -Has {hastiers}: +{#if tiers.length >0} {#each tiers as tier, i (tier.file)} @@ -35,3 +35,4 @@ {/each} +{/if} diff --git a/src/SpHasWhat.svelte b/src/SpHasWhat.svelte new file mode 100644 index 0000000..70806ba --- /dev/null +++ b/src/SpHasWhat.svelte @@ -0,0 +1,31 @@ + + + + Has new... + {#each hases as has} + Has {has}: + {/each} +