Skip to content

Commit

Permalink
fix(technical user table): prevent overlap between text and sort icon (
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmargi12 authored Oct 9, 2024
1 parent f0839f0 commit 62d669d
Showing 1 changed file with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ export const TechnicalUserTable = () => {
searchExpr={expr}
hasBorder={false}
rowHeight={80}
sx={{
'.MuiDataGrid-columnHeader, .MuiDataGrid-row .MuiDataGrid-cell[role="cell"]':
{
padding: '0 15px',
'&:first-child': {
paddingLeft: '32px',
},
'&:last-child': {
paddingRight: '25px',
},
},
}}
defaultFilter={group}
columnHeadersBackgroundColor={'transparent'}
toolbarVariant={'searchAndFilter'}
Expand All @@ -127,12 +139,12 @@ export const TechnicalUserTable = () => {
{
field: 'clientId',
headerName: t('global.field.clientId'),
flex: 1.1,
flex: 1.15,
},
{
field: 'serviceAccountType',
headerName: t('global.field.ownership'),
flex: 1.15,
flex: 1.2,
},
{
field: 'usertype',
Expand All @@ -144,21 +156,21 @@ export const TechnicalUserTable = () => {
{
field: 'offer',
headerName: t('global.field.offerLink'),
flex: 1.2,
flex: 1.25,
valueGetter: ({ row }: { row: ServiceAccountListEntry }) =>
row.offer ? row.offer?.name : '',
},
{
field: 'isOwner',
headerName: t('global.field.owner'),
flex: 0.9,
flex: 1,
valueGetter: ({ row }: { row: ServiceAccountListEntry }) =>
row.isOwner ? 'Yes' : 'No',
},
{
field: 'status',
headerName: t('global.field.status'),
flex: 1.25,
flex: 1,
renderCell: ({ row }: { row: ServiceAccountListEntry }) => (
<StatusTag
color={statusColorMap[row.status]}
Expand All @@ -171,7 +183,7 @@ export const TechnicalUserTable = () => {
{
field: 'details',
headerName: t('global.field.details'),
flex: 0.9,
flex: 1.1,
renderCell: ({ row }: { row: ServiceAccountListEntry }) => (
<>
<IconButton
Expand Down

0 comments on commit 62d669d

Please sign in to comment.