diff --git a/frontend/src/lib/geschichte/JourneyItemCard.svelte b/frontend/src/lib/geschichte/JourneyItemCard.svelte index dff6b316..534aaa8a 100644 --- a/frontend/src/lib/geschichte/JourneyItemCard.svelte +++ b/frontend/src/lib/geschichte/JourneyItemCard.svelte @@ -58,7 +58,7 @@ const hasNote = $derived(item.note != null && item.note.trim().length > 0); {#if hasNote} -
+

{item.note}

{/if} diff --git a/frontend/src/lib/geschichte/JourneyItemCard.svelte.spec.ts b/frontend/src/lib/geschichte/JourneyItemCard.svelte.spec.ts index 39e19681..a3901521 100644 --- a/frontend/src/lib/geschichte/JourneyItemCard.svelte.spec.ts +++ b/frontend/src/lib/geschichte/JourneyItemCard.svelte.spec.ts @@ -110,6 +110,14 @@ describe('JourneyItemCard', () => { await expect.element(page.getByText('Ein wichtiger Brief')).toBeVisible(); }); + it('annotation block uses the brand mint accent border (#798)', async () => { + render(JourneyItemCard, { props: { item: baseItem({ note: 'Ein wichtiger Brief' }) } }); + + const note = document.querySelector('[class*="border-l-2"]'); + expect(note).not.toBeNull(); + expect(note!.className).toContain('border-brand-mint'); + }); + it('omits annotation block when note is blank or whitespace', async () => { render(JourneyItemCard, { props: { item: baseItem({ note: ' ' }) } });