aboutsummaryrefslogtreecommitdiff
path: root/src/components/BaseLine.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-10-10 20:29:00 +1100
committerTerry Truong <terry06890@gmail.com>2022-10-10 20:29:00 +1100
commit5f6e110ecbcf48700f0f949995cba0bd2ef0d251 (patch)
treea9debe0fb460b83ee5a193fcb463c8af96c82d79 /src/components/BaseLine.vue
parentc8b42c9923213390289395ef477f8645191b0ce8 (diff)
Fix non-pointer-centered scrolling in horizontal mode
Diffstat (limited to 'src/components/BaseLine.vue')
-rw-r--r--src/components/BaseLine.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/BaseLine.vue b/src/components/BaseLine.vue
index bde2e56..84a3846 100644
--- a/src/components/BaseLine.vue
+++ b/src/components/BaseLine.vue
@@ -36,7 +36,7 @@ function periodStyles(period){
flexGrow: period.len,
};
}
-const labelStyles = computed(() => ({
+const labelStyles: Record<string,string> = computed(() => ({
transform: props.vert ? 'rotate(90deg) translate(50%, 0)' : 'none',
whiteSpace: 'nowrap',
width: props.vert ? '40px' : 'auto',