diff --git a/src/app/components/CalendarEventHeader.svelte b/src/app/components/CalendarEventHeader.svelte index 58a84d8a..764720f2 100644 --- a/src/app/components/CalendarEventHeader.svelte +++ b/src/app/components/CalendarEventHeader.svelte @@ -19,15 +19,17 @@ const end = $derived(parseInt(meta.end)) -
-

{meta.title || meta.name}

+
+

{meta.title || meta.name}

{#if !isNaN(start) && !isNaN(end)} {@const startDateDisplay = formatTimestampAsDate(start)} {@const endDateDisplay = formatTimestampAsDate(end)} {@const isSingleDay = startDateDisplay === endDateDisplay} -
- - +
+
+ + {formatTimestampAsDate(start)} +
{formatTimestampAsTime(start)} — {isSingleDay ? formatTimestampAsTime(end) : formatTimestamp(end)}