mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
fix: [code-682]: fix overlapping issues in tables (#259)
This commit is contained in:
parent
39a7de6382
commit
70cf2df96a
@ -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(
|
||||
|
@ -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)}
|
||||
|
@ -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 || ''} />
|
||||
) : (
|
||||
|
Loading…
x
Reference in New Issue
Block a user