From 79e9f423be7e614c7036fe6002ebb66a3d36740e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Kalu=C5=BEa?= Date: Tue, 13 Dec 2022 10:09:47 +0100 Subject: [PATCH] [timeline] short task --- app/public/mock/v1/overview/tasks.GET.json | 2 +- .../tasks/_components/z-timeline.vue | 49 ++++++++++++++++--- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/app/public/mock/v1/overview/tasks.GET.json b/app/public/mock/v1/overview/tasks.GET.json index 32751f4..68e0988 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", + "title": "Kratky 30min asdk jasdbhj akhsdh askbsd abjksdk bjas", "project_code": "CO-2201", "master_task_color": "#f27e57" }, 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 dc001e3..2fa8467 100644 --- a/app/src/plugins/tm@dashboard/tasks/_components/z-timeline.vue +++ b/app/src/plugins/tm@dashboard/tasks/_components/z-timeline.vue @@ -14,6 +14,7 @@ :overlaps-per-time-step="false" :showTimeInCells="false" :time-cell-height="70" + :snap-to-time="5" :min-cell-width="300" @ready="onReady()" @view-change="weekChanged" @@ -47,11 +48,11 @@