From 4261c285072a88e7fd7f631f46fdbc40fa9f14a7 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 27 Dec 2022 10:15:02 +1100 Subject: Show dashed line if event has imprecise start --- src/components/TimeLine.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/components') diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index ee88424..009abd8 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -32,11 +32,14 @@ :fill="store.color.textDark" :style="tickLabelStyles(tick)" class="text-sm animate-fadein"> {{tick.date.toDisplayString()}} - + +
@@ -1075,9 +1078,9 @@ function eventImgStyles(eventId: number){ }; } function eventLineStyles(eventId: number){ - const [x, y, l, a] = eventLines.value.get(eventId)!; + const [x, y, , a] = eventLines.value.get(eventId)!; return { - transform: `translate(${x}px, ${y}px) rotate(${a}deg) scaleX(${l})`, + transform: `translate(${x}px, ${y}px) rotate(${a}deg)`, transitionProperty: skipTransition.value ? 'none' : 'transform', transitionDuration: store.transitionDuration + 'ms', transitionTimingFunction: 'ease-out', -- cgit v1.2.3