diff --git a/web/src/components/repo/pipeline/PipelineLog.vue b/web/src/components/repo/pipeline/PipelineLog.vue index ad47f3f93..5d060d44a 100644 --- a/web/src/components/repo/pipeline/PipelineLog.vue +++ b/web/src/components/repo/pipeline/PipelineLog.vue @@ -38,13 +38,13 @@ >
{{ line.index + 1 }}>('repo'); const apiClient = useApiClient(); +const route = useRoute(); const loadedStepSlug = ref(); const stepSlug = computed(() => `${repo?.value.owner} - ${repo?.value.name} - ${pipeline.value.id} - ${stepId.value}`); @@ -219,7 +221,9 @@ const flushLogs = debounce((scroll: boolean) => { log.value = buffer; - if (scroll && autoScroll.value) { + if (route.hash.length > 0) { + nextTick(() => document.getElementById(route.hash.substring(1))?.scrollIntoView()); + } else if (scroll && autoScroll.value) { scrollDown(); } }, 500);