Skip to content

Commit 161e957

Browse files
(status page) Fix scroll offset
Adjust scroll offset when clicking on the headers to scroll to a location where the heading is visible, rather than just the content.
1 parent 4b397cb commit 161e957

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/kamon-status-page/src/main/vue/src/views/Overview.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ export default class Overview extends Vue {
112112
}
113113
114114
public goToInstrumentation(): void {
115-
this.$vuetify.goTo('.js-instrumentation')
115+
this.$vuetify.goTo('.js-instrumentation', { offset: 80 })
116116
}
117117
118118
public goToReporters(): void {
119-
this.$vuetify.goTo('.js-reporters')
119+
this.$vuetify.goTo('.js-reporters', { offset: 80 })
120120
}
121121
122122
public goToMetrics(): void {
123-
this.$vuetify.goTo('.js-metrics')
123+
this.$vuetify.goTo('.js-metrics', { offset: 80 })
124124
}
125125
126126
private refreshData(): void {

0 commit comments

Comments
 (0)