diff --git a/src/lib/components/NoteCard.svelte b/src/lib/components/NoteCard.svelte index 46b52c3..baecf0b 100644 --- a/src/lib/components/NoteCard.svelte +++ b/src/lib/components/NoteCard.svelte @@ -78,6 +78,28 @@ data-testid="note-card" data-note-id={note.id} > + + {#if note.attachments && note.attachments.length > 0} +
+ {#each note.attachments.slice(0, 3) as attachment} +
+ {attachment.filename} +
+ {/each} + {#if note.attachments.length > 3} +
+ +{note.attachments.length - 3} +
+ {/if} +
+ {/if} + {#if note.pinned} + + +