diff --git a/client/src/components/Workflow/Invocation/Graph/WorkflowInvocationSteps.vue b/client/src/components/Workflow/Invocation/Graph/WorkflowInvocationSteps.vue index c161ba38df4c..febb69008e06 100644 --- a/client/src/components/Workflow/Invocation/Graph/WorkflowInvocationSteps.vue +++ b/client/src/components/Workflow/Invocation/Graph/WorkflowInvocationSteps.vue @@ -61,15 +61,10 @@ watch( // on full page view, scroll to the active step card in the steps section if (props.isFullPage) { if (nodeId !== undefined && card) { - // scroll to the input steps header - if (isAnInput) { - const inputHeader = stepsDiv.value?.querySelector(`.invocation-inputs-header`); - inputHeader?.scrollIntoView({ behavior: "smooth" }); - } - // scroll to the active step card const stepCard = stepsDiv.value?.querySelector(`[data-index="${props.activeNodeId}"]`); - stepCard?.scrollIntoView(); + const portletHeaderDiv = stepCard?.querySelector(".portlet-header"); + stepsDiv.value?.scrollTo({ top: portletHeaderDiv?.getBoundingClientRect().top }); } } // clear any job being shown @@ -88,7 +83,7 @@ function showJob(jobId: string | undefined) {