diff --git a/src/routes/(app)/documents/+page.svelte b/src/routes/(app)/documents/+page.svelte index fc117d5b..5152385a 100644 --- a/src/routes/(app)/documents/+page.svelte +++ b/src/routes/(app)/documents/+page.svelte @@ -247,38 +247,38 @@ --> - {#each $documents.filter((doc) => (selectedTag === '' || (doc?.content?.tags ?? []) - .map((tag) => tag.name) - .includes(selectedTag)) && (query === '' || doc.name.includes(query))) as doc} -
+
- {#if tags.length > 0} -
+ {#if tags.length > 0} +
+ + {#each tags as tag} - {#each tags as tag} - - {/each} -
- {/if} + {/each} +
+ {/if} + {#each $documents.filter((doc) => (selectedTag === '' || (doc?.content?.tags ?? []) + .map((tag) => tag.name) + .includes(selectedTag)) && (query === '' || doc.name.includes(query))) as doc}
@@ -419,7 +419,9 @@
{/each} -
+ {#if $documents.length > 0} +
+ {/if}