fix: [code-1991]: fix padding and scroll (#2119)

This commit is contained in:
Calvin Lee 2024-06-17 23:12:12 +00:00 committed by Harness
parent 4c4924495c
commit 71d37cc632
3 changed files with 6 additions and 4 deletions

View File

@ -86,7 +86,7 @@
.requiredContainer { .requiredContainer {
display: inline-flex !important; display: inline-flex !important;
padding: 0px 6px 0.5px 6px !important; padding: 0px 11px 0.5px 11px !important;
justify-content: center !important; justify-content: center !important;
align-items: center !important; align-items: center !important;
gap: 10px !important; gap: 10px !important;
@ -189,7 +189,7 @@
} }
.paddingWithOutReq { .paddingWithOutReq {
padding-right: 4rem !important; padding-right: 4.15rem !important;
} }
.changeContainerPadding { .changeContainerPadding {

View File

@ -492,7 +492,7 @@ const ChangesSection = (props: ChangesSectionProps) => {
</Text> </Text>
) : ( ) : (
<Layout.Horizontal> <Layout.Horizontal>
<Container padding={{ left: 'medium' }}> <Container padding={{ left: 'large' }}>
<img alt="emptyStatus" width={16} height={16} src={emptyStatus} /> <img alt="emptyStatus" width={16} height={16} src={emptyStatus} />
</Container> </Container>

View File

@ -71,7 +71,9 @@ const CommentsSection = (props: MergeSectionProps) => {
label: getString('unrsolvedComment'), label: getString('unrsolvedComment'),
value: PRCommentFilterType.UNRESOLVED_COMMENTS 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} ) : null}