fix: [code-682]: fix overlapping issues in tables (#259)

This commit is contained in:
Calvin Lee 2023-08-01 18:07:12 +00:00 committed by Harness
parent 39a7de6382
commit 70cf2df96a
3 changed files with 5 additions and 2 deletions

View File

@ -27,6 +27,7 @@ export function FolderContent({
Cell: ({ row }: CellProps<OpenapiContentInfo>) => {
return (
<Text
lineClamp={1}
className={css.rowText}
color={Color.BLACK}
icon={isFile(row.original) ? CodeIcon.File : CodeIcon.Folder}
@ -47,6 +48,7 @@ export function FolderContent({
role="button"
color={Color.BLACK}
lineClamp={1}
padding={{ right: 'small' }}
className={css.rowText}
onClick={() => {
history.push(

View File

@ -60,6 +60,7 @@ export function BranchesContent({ repoMetadata, searchTerm = '', branches, onDel
Cell: ({ row }: CellProps<RepoBranch>) => {
return (
<Text
lineClamp={1}
className={cx(css.rowText, row.original?.name === repoMetadata.default_branch ? css.defaultBranch : '')}
color={Color.BLACK}>
<Link
@ -101,7 +102,7 @@ export function BranchesContent({ repoMetadata, searchTerm = '', branches, onDel
width: '200px',
Cell: ({ row }: CellProps<RepoBranch>) => {
return (
<Text className={css.rowText} color={Color.BLACK} tag="div">
<Text lineClamp={1} className={css.rowText} color={Color.BLACK} tag="div">
<Avatar hoverCard={false} size="small" name={row.original.commit?.author?.identity?.name || ''} />
<span className={css.spacer} />
{formatDate(row.original.commit?.author?.when as string)}

View File

@ -93,7 +93,7 @@ export function TagsContent({ repoMetadata, searchTerm = '', branches, onDeleteS
width: '15%',
Cell: ({ row }: CellProps<RepoCommitTag>) => {
return (
<Text className={css.rowText} color={Color.BLACK} tag="div">
<Text lineClamp={1} className={css.rowText} color={Color.BLACK} tag="div">
{row.original.tagger?.identity?.name ? (
<Avatar hoverCard={false} size="small" name={row.original.tagger?.identity?.name || ''} />
) : (