From fb8b82724d6052966be439517318008e10c23e82 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Fri, 30 Jan 2026 21:40:54 -0500 Subject: [PATCH] Fixed later weeks not being accessable on smaller desktop screens --- ui/src/pages/Calendar.vue | 73 +++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 34 deletions(-) diff --git a/ui/src/pages/Calendar.vue b/ui/src/pages/Calendar.vue index efef877..e5cc681 100644 --- a/ui/src/pages/Calendar.vue +++ b/ui/src/pages/Calendar.vue @@ -11,6 +11,7 @@ import { useRouter, useRoute } from 'vue-router' import { useCalendarEvents } from '@/composables/useCalendarEvents' import { useCalendarNavigation } from '@/composables/useCalendarNavigation' import { useUserStore } from '@/stores/user' +import { CalendarOptions } from '@fullcalendar/core' const monthLabels = [ 'January', 'February', 'March', 'April', 'May', 'June', @@ -53,11 +54,12 @@ function onDateClick(arg: { dateStr: string }) { dialogRef.value?.openDialog(arg.dateStr); } -const calendarOptions = ref({ +const calendarOptions = ref({ plugins: [dayGridPlugin, interactionPlugin], initialView: 'dayGridMonth', - height: '100%', + height: 'auto', expandRows: true, + dayMaxEvents: 3, headerToolbar: { left: '', center: '', @@ -70,6 +72,7 @@ const calendarOptions = ref({ eventClick: onEventClick, editable: false, + // force block-mode in dayGrid so we can lay it out on one line eventDisplay: 'block', @@ -156,7 +159,7 @@ onMounted(() => {
-
+
@@ -211,47 +214,46 @@ onMounted(() => { class="w-screen 3xl:w-lg 2xl:w-md lg:border-l bg-card text-foreground flex flex-col overflow-auto scrollbar-themed" :style="{ height: 'calc(100vh - 61px)', position: 'sticky', top: '64px' }"> + @reload="loadEvents()" @load="calendarRef.getApi().updateSize()" + @edit="(val) => { dialogRef.openDialog(null, 'edit', val) }">
- -