The mgl-timeline component appends a div to represent the timeline-line line (The grey line).
From your code you are defining a maximum height to the mgl-timeline component max-height: 70vh;. The implication is that the timeline-line line will also have a maximum height of 70vh.
If you remove this property then the issue disappears, if it is compulsory that you have the maximum height set, you would have to use a different implementation style wise.
- Disable the default
timeline-line
- Attach a pseudo element to each
mgl-timeline-entry, this means that each timeline entry will have the grey line attached to it, so the entries array can grow as long as possible.
Please see below:
.mgl-timeline-line { // Hide the default timeline
display: none;
}
.mgl-timeline-entry-card-header:before { // Pseudo element is attached to the card which creates the time-line line for each entry
width: 10px;
background-color: #a0a0a0;
height: 300%;
content: "";
position: absolute;
left: calc((100% - 10px) / 2);
left: -10px;
top: -100%;
}