From f3c97f41ee84dfdc718d1a9bc1aac24e6b6755c9 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 15 Jan 2023 22:31:04 +1100 Subject: Avoid tick label overlap Use rotation for horizontal timelines with long tick labels. For other labels, look for overlap, and hide problematic ones. Use darker text to indicate minor ticks instead of minor offset. --- src/components/TimeLine.vue | 77 +++++++++++++++++++++++++++++++++++---------- src/lib.ts | 9 ++++++ src/store.ts | 2 ++ 3 files changed, 71 insertions(+), 17 deletions(-) diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 2f3933b..7791f66 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -31,12 +31,12 @@ :style="tickStyles(tick)" class="animate-fadein" :class="{'max-tick': tick.bound == 'max', 'min-tick': tick.bound == 'min'}"/> -