From 2c51813db44a185849d596f0e6037b0c40b74140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Kalu=C5=BEa?= Date: Tue, 13 Dec 2022 16:00:15 +0100 Subject: [PATCH] [timeline] refactor --- app/public/mock/v1/overview/tasks.GET.json | 2 +- app/src/plugins/app@vendor/vue-cal/event.vue | 1 + .../tasks/_components/z-timeline.vue | 253 ++++++++++-------- 3 files changed, 143 insertions(+), 113 deletions(-) diff --git a/app/public/mock/v1/overview/tasks.GET.json b/app/public/mock/v1/overview/tasks.GET.json index 68e0988..c9d8393 100644 --- a/app/public/mock/v1/overview/tasks.GET.json +++ b/app/public/mock/v1/overview/tasks.GET.json @@ -51,7 +51,7 @@ "task_id": 2, "starts_at": "2022-12-12T08:30:00+00:00", "ends_at": "2022-12-12T09:00:00+00:00", - "title": "Kratky 30min asdk jasdbhj akhsdh askbsd abjksdk bjas", + "title": "Kratky 30min Lorem ipsum dolor sit amet, consectetur adipiscing e", "project_code": "CO-2201", "master_task_color": "#f27e57" }, diff --git a/app/src/plugins/app@vendor/vue-cal/event.vue b/app/src/plugins/app@vendor/vue-cal/event.vue index 15ec18d..8b3bc71 100644 --- a/app/src/plugins/app@vendor/vue-cal/event.vue +++ b/app/src/plugins/app@vendor/vue-cal/event.vue @@ -2,6 +2,7 @@ .vuecal__event( :class="eventClasses" :style="eventStyles" + :eventId="`event-id-${event.id}`" tabindex="0" @focus="focusEvent" @keypress.enter.stop="onEnterKeypress" diff --git a/app/src/plugins/tm@dashboard/tasks/_components/z-timeline.vue b/app/src/plugins/tm@dashboard/tasks/_components/z-timeline.vue index 2fa8467..0a660c5 100644 --- a/app/src/plugins/tm@dashboard/tasks/_components/z-timeline.vue +++ b/app/src/plugins/tm@dashboard/tasks/_components/z-timeline.vue @@ -13,8 +13,8 @@ :unscheduledTime="calData.unscheduled_times" :overlaps-per-time-step="false" :showTimeInCells="false" - :time-cell-height="70" - :snap-to-time="5" + :time-cell-height="100" + :snap-to-time="15" :min-cell-width="300" @ready="onReady()" @view-change="weekChanged" @@ -48,15 +48,15 @@