feat: [CODE-2819]: Reposition Search Box for Archived Repos (#3255)

This commit is contained in:
Atefeh Mohseni Ejiyeh 2025-01-14 16:32:02 +00:00 committed by Harness
parent 2d4e2f063e
commit b63781ee02
3 changed files with 7 additions and 1 deletions

View File

@ -100,6 +100,11 @@
}
}
// to make space between the Archive banner and search box
.searchBoxPositionArchivedRepo {
top: -70px !important;
}
.mainBorder {
border-bottom: 1px solid var(--grey-200) !important;
}

View File

@ -23,3 +23,4 @@ export declare const mainContainer: string
export declare const refRoot: string
export declare const rootSlash: string
export declare const searchBoxCtn: string
export declare const searchBoxPositionArchivedRepo: string

View File

@ -169,7 +169,7 @@ export function ContentHeader({
</>
)}
</Layout.Horizontal>
<div className={css.searchBoxCtn}>
<div className={cx(css.searchBoxCtn, { [css.searchBoxPositionArchivedRepo]: repoMetadata?.archived })}>
{!standalone && !isCurrentSessionPublic ? <CodeSearch repoMetadata={repoMetadata} /> : null}
</div>
</Container>