[events] Fixed AgendaView breakpoint

This commit is contained in:
Ferdinand Thiessen 2021-04-01 03:15:06 +02:00
parent 8abcd44340
commit 1f71abcd4b
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ export default defineComponent({
const calendarRealView = computed(() => (calendarDays.value != 7 ? 'day' : 'week'));
const calendarDays = computed(() =>
// <= 1023 is the breakpoint for sm to md
calendarView.value == 'day' ? 1 : windowWidth.value <= 1023 ? 3 : 7
// <= 1023 is the breakpoint for md
calendarView.value == 'day' ? 1 : windowWidth.value <= 1439 ? 3 : 7
);
const events = ref<Agendas>({});
const editor = ref<EditableEvent | undefined>(undefined);