Skip to content

Commit

Permalink
fix: [code-1991]: fix padding and scroll (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlee01 authored and Harness committed Jun 17, 2024
1 parent 4c49244 commit 71d37cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

.requiredContainer {
display: inline-flex !important;
padding: 0px 6px 0.5px 6px !important;
padding: 0px 11px 0.5px 11px !important;
justify-content: center !important;
align-items: center !important;
gap: 10px !important;
Expand Down Expand Up @@ -189,7 +189,7 @@
}

.paddingWithOutReq {
padding-right: 4rem !important;
padding-right: 4.15rem !important;
}

.changeContainerPadding {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ const ChangesSection = (props: ChangesSectionProps) => {
</Text>
) : (
<Layout.Horizontal>
<Container padding={{ left: 'medium' }}>
<Container padding={{ left: 'large' }}>
<img alt="emptyStatus" width={16} height={16} src={emptyStatus} />
</Container>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ const CommentsSection = (props: MergeSectionProps) => {
label: getString('unrsolvedComment'),
value: PRCommentFilterType.UNRESOLVED_COMMENTS
})
document.querySelectorAll('.bp3-input[value="Active"]')[0].scrollIntoView({ behavior: 'smooth' })
setTimeout(() => {
document.querySelectorAll('.bp3-input[value="Active"]')[0]?.scrollIntoView({ behavior: 'smooth' })
}, 0)
}}
/>
) : null}
Expand Down

0 comments on commit 71d37cc

Please sign in to comment.