Skip to content

Commit

Permalink
feat: finally stage issue TencentBlueKing#3138
Browse files Browse the repository at this point in the history
  • Loading branch information
terlinhe committed May 7, 2021
1 parent 6e28229 commit 6cf0ae8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/frontend/devops-pipeline/src/components/Pipeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@
})
if (insertStageIsFinally) {
const element = document.getElementsByClassName('bk-tab-section')[0]
console.log(element, element.scrollWidth)
element && (element.scrollLeft = element.scrollWidth)
element && (element.scrollLeft = element.scrollWidth + 300)
}
setInertStageIndex({
insertStageIndex: insertStageIndex + 1
Expand Down Expand Up @@ -310,7 +309,7 @@
flex: 1;
overflow: auto;
.scroll-wraper {
padding: 30px 0 40px 30px;
padding: 20px 0 40px 30px;
min-height: 100%;
}
&:before {
Expand Down

0 comments on commit 6cf0ae8

Please sign in to comment.