diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 2eb1d3d2..252f25dc 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -171,7 +171,7 @@ export default { this.$refs.scroller.$el.style.height = (height - 4) + 'px'; // Mobile devices - if (width < 768) { + if (window.innerWidth <= 768) { width += 10; this.isMobile = true; } else {