diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-14 11:26:10 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-14 11:26:10 +1100 |
| commit | 21b5e5ee7bb933fa8235430aa63382b70dbe3d1b (patch) | |
| tree | e73cd119db59ce7a885273d455675d008cfd252d /src/components/TimeLine.vue | |
| parent | 3029a2f866b240856518cfa944b9e00ef37455db (diff) | |
Improve date display in info modal
Make desc field of EventInfo optional
Don't require desc in type=info result
Fix image not showing in info modal
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 6d0f632..8aeb883 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -43,7 +43,7 @@ x="0" y="0" :text-anchor="vert ? 'start' : 'middle'" dominant-baseline="middle" :fill="store.color.textDark" :style="tickLabelStyles(tick)" class="text-sm animate-fadein cursor-default select-none"> - {{tick.date.toDisplayString()}} + {{tick.date.toTickString()}} </text> </template> </svg> @@ -1289,7 +1289,7 @@ function eventImgStyles(eventId: number){ width: store.eventImgSz + 'px', height: store.eventImgSz + 'px', backgroundImage: `url(${getImagePath(event.imgId)})`, - backgroundColor: 'black', + backgroundColor: store.color.bgDark, backgroundSize: 'cover', borderColor: color, borderWidth: '1px', |
