diff --git a/src/plugins/events/components/overview/AgendaView.vue b/src/plugins/events/components/overview/AgendaView.vue index 2389d96..c9db532 100644 --- a/src/plugins/events/components/overview/AgendaView.vue +++ b/src/plugins/events/components/overview/AgendaView.vue @@ -46,7 +46,7 @@ @@ -55,6 +55,7 @@ (calendarDays.value != 7 ? 'day' : 'week')); const calendarDays = computed(() => - // <= 1023 is the breakpoint for md - calendarView.value == 'day' ? 1 : windowWidth.value <= 1439 ? 3 : 7 + // 599px is breakpoint for xs, 1439px is the breakpoint for md + calendarView.value == 'day' || windowWidth.value < 600 ? 1 : windowWidth.value <= 1440 ? 3 : 7 ); const events = ref({}); const editor = ref(undefined); @@ -285,6 +286,7 @@ export default defineComponent({ selectedDate, showDay, updateProxy, + windowWidth, }; }, });