diff options
| -rw-r--r-- | src/App.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index 9dcb08b..bfd2730 100644 --- a/src/App.vue +++ b/src/App.vue @@ -106,7 +106,7 @@ const timelineWidth = computed(() => { }); const timelineHeight = computed(() => { let baseLineHeight = (store.showBaseLine && !vert.value) ? store.baseLineBreadth : 0; - return (contentHeight.value - baseLineHeight) / (vert.value ? 1 : timelines.value.length); + return Math.max(1, contentHeight.value - baseLineHeight) / (vert.value ? 1 : timelines.value.length); }); function updateAreaDims(){ |
