diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-12-27 21:49:44 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-12-27 21:49:44 +1100 |
| commit | 4e2f5aa890fab3f7235e50ad3fd5259e6b55aaa1 (patch) | |
| tree | 414eed331be440b405fa21085514933dafb0149a /src/components | |
| parent | a96fa2c3e331e28837cf0b5a7734fbb5ab4fadf0 (diff) | |
Fix end-tick shape being used for minor ticks
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/TimeLine.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 30d5404..4f25a61 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -15,7 +15,7 @@ <line :stroke="store.color.alt" stroke-width="2px" x1="-1" y1="0" x2="2" y2="0" :style="mainlineStyles"/> <!-- Tick markers --> <template v-for="tick in ticks" :key="tick.date.toInt()"> - <line v-if="tick.date.equals(MIN_DATE, scale) || tick.date.equals(MAX_DATE, scale)" + <line v-if="tick.major && (tick.date.equals(MIN_DATE, scale) || tick.date.equals(MAX_DATE, scale))" :x1="vert ? -store.endTickSz / 2 : 0" :y1="vert ? 0 : -store.endTickSz / 2" :x2="vert ? store.endTickSz / 2 : 0" :y2="vert ? 0 : store.endTickSz / 2" :stroke="store.color.alt" :stroke-width="`${store.endTickSz}px`" |
