From 6328c0342e645f907989c0060284a06bba1c31aa Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 6 Mar 2022 15:15:06 +0100 Subject: [PATCH] Sur mobile on commence avec le planning --- src/App.svelte | 2 +- src/FilterBar.svelte | 2 +- src/calendar.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index dd6ece5..0286a32 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -25,7 +25,7 @@ let calendar; let options = writable({ - initialView: 'timeGridWeek', + initialView: window.innerWidth < 765 ? 'listWeek' : 'timeGridWeek', plugins: [ timeGridPlugin, dayGridPlugin, diff --git a/src/FilterBar.svelte b/src/FilterBar.svelte index aaa014a..18fe5fe 100644 --- a/src/FilterBar.svelte +++ b/src/FilterBar.svelte @@ -7,7 +7,7 @@ let subSelections = Array.from({ length: Object.keys(calendarTree).length }, _ => []); $: selected = subSelections.flat(); - let open = true; + let open = false; const toggle = () => (open = !open); diff --git a/src/calendar.js b/src/calendar.js index e34596a..5834aa0 100644 --- a/src/calendar.js +++ b/src/calendar.js @@ -82,7 +82,6 @@ function fcEventFromjCalEvent(cal) { color: cal.color, duration: end - start // in ms } - console.log(cal) fcEvent.calendar = cal.name fcEvent.short_name = evt.summary