parent
1cb791b4a5
commit
79f32298d0
|
@ -320,7 +320,7 @@ export default defineComponent({
|
||||||
const hoverCursor = <HTMLSpanElement>this.$refs.hoverCursor;
|
const hoverCursor = <HTMLSpanElement>this.$refs.hoverCursor;
|
||||||
this.topPadding = hoverCursor?.offsetHeight ?? 0;
|
this.topPadding = hoverCursor?.offsetHeight ?? 0;
|
||||||
|
|
||||||
// Add extra padding for any top elements
|
// Add extra padding for any top elements (top matter, mobile header)
|
||||||
document.querySelectorAll('.timeline-scroller-gap').forEach((el) => {
|
document.querySelectorAll('.timeline-scroller-gap').forEach((el) => {
|
||||||
this.topPadding += el.clientHeight + 1;
|
this.topPadding += el.clientHeight + 1;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue