diff --git a/web/src/lib/components/CalendarView.svelte b/web/src/lib/components/CalendarView.svelte index 4cac559..a377b6a 100644 --- a/web/src/lib/components/CalendarView.svelte +++ b/web/src/lib/components/CalendarView.svelte @@ -1,10 +1,15 @@ -
+
- -

{monthName}

- - + +

+ {heading} + {#if weekNumber}uge {weekNumber}{/if} +

+ +
@@ -128,7 +218,8 @@
{#each grid as date (date.toISOString())} {@const tasks = tasksOn(date)} - {@const outside = date.getMonth() !== cursor.getMonth()} + + {@const outside = span !== 'week' && date.getMonth() !== cursor.getMonth()}
(over = null)} ondrop={(e) => onDrop(e, date)} > + + {#if span === 'week'} + {WEEKDAYS[(date.getDay() + 6) % 7]} + {/if} {date.getDate()} - {#each tasks.slice(0, 3) as task (task.id)} + {#each tasks.slice(0, chipLimit) as task (task.id)}