Sur mobile on commence avec le planning

This commit is contained in:
Tom Hubrecht 2022-03-06 15:15:06 +01:00
parent 22c1b4a784
commit 6328c0342e
3 changed files with 2 additions and 3 deletions

View file

@ -25,7 +25,7 @@
let calendar;
let options = writable({
initialView: 'timeGridWeek',
initialView: window.innerWidth < 765 ? 'listWeek' : 'timeGridWeek',
plugins: [
timeGridPlugin,
dayGridPlugin,

View file

@ -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);
</script>

View file

@ -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