From 50a7a060e1db5bad0ec42de7020641c15fde5892 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 21 Apr 2023 22:41:53 +0200 Subject: [PATCH] refactored the design to make it more like the google calendar --- webclient/components/CalendarModal.vue | 60 ++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/webclient/components/CalendarModal.vue b/webclient/components/CalendarModal.vue index 5cad523e1..dd6786d13 100644 --- a/webclient/components/CalendarModal.vue +++ b/webclient/components/CalendarModal.vue @@ -8,7 +8,7 @@ import { useRoute } from "vue-router"; import type { components } from "@/api_types"; type CalendarResponse = components["schemas"]["CalendarResponse"]; import "/node_modules/vue-simple-calendar/dist/style.css"; -import "/node_modules/vue-simple-calendar/dist/css/default.css"; +import "/node_modules/vue-simple-calendar/dist/css/gcal.css"; import { useFetch } from "@/composables/fetch"; const global = useGlobalStore(); @@ -76,9 +76,10 @@ function setShowDate(d: Date) { :items="events" :show-date="showDate" :showTimes="true" - :timeFormatOptions="{ hour: '2-digit', minute: '2-digit' }" + :timeFormatOptions="{ hour: '2-digit', minute: '2-digit', hour12: false }" :startingDayOfWeek="1" - class="theme-default" + :itemTop="'2.5em'" + class="theme-gcal" >