diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-10-19 17:48:10 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-10-19 17:48:10 +1100 |
| commit | 9fa58dda8a0f35437b76bc2039f5e96dfe21c099 (patch) | |
| tree | 9d2bffdacd52397fe50254826ce9424cacf08fdb /src/App.vue | |
| parent | 6618e3a1928440b2a7accad6053f970c316c27c8 (diff) | |
Move mainline to side when display area is too small
Diffstat (limited to 'src/App.vue')
| -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 1a8608b..28f6fea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -84,7 +84,7 @@ function onTimelineChg(state: TimelineState, idx: number){ } // For timeline addition/removal -const MIN_TIMELINE_BREADTH = 150; +const MIN_TIMELINE_BREADTH = 80 + 10 * 2 + 100; // TODO: Link with constants in components/TimeLine.vue function onTimelineAdd(){ if (vert.value && contentWidth.value / (timelines.value.length + 1) < MIN_TIMELINE_BREADTH || !vert.value && contentHeight.value / (timelines.value.length + 1) < MIN_TIMELINE_BREADTH){ |
