Skip to content

Commit a34ec2f

Browse files
authored
Merge pull request #127 from edsonmartins/develop
Ajustar filtros da view de segurança e adição de padding na grid para não ocultar parte da última linha
2 parents a0c57cc + c1f8f61 commit a34ec2f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/datagrid/main/archbase-data-grid.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,10 @@ function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataG
581581
theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[0],
582582
padding: theme.spacing.md,
583583
width: '100%'
584+
},
585+
586+
'& .MuiDataGrid-virtualScroller': {
587+
paddingBottom: '14px !important'
584588
}
585589
}
586590
}
@@ -1084,7 +1088,6 @@ function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataG
10841088
onFilterModelChange={handleFilterModelChange}
10851089
rowHeight={rowHeight}
10861090
checkboxSelection={enableRowSelection}
1087-
autoHeight={false}
10881091
rowSelectionModel={rowSelection}
10891092
columnVisibilityModel={columnVisibilityModel}
10901093
onRowSelectionModelChange={handleSelectionModelChange}

src/components/security/ArchbaseSecurityView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ export function ArchbaseSecurityView({
356356
src={data.row.avatar ? atob(data.row.avatar) : NO_USER}
357357
/>
358358
)}
359-
inputFilterType="text"
359+
enableSorting={false}
360+
enableColumnFilter={false}
361+
enableGlobalFilter={false}
360362
align="center"
361363
/>
362364
<ArchbaseDataGridColumn<UserDto>
@@ -394,7 +396,9 @@ export function ArchbaseSecurityView({
394396
size={300}
395397
header={t('archbase:Grupos')}
396398
render={(data) => renderGroups(data.row)}
397-
inputFilterType="text"
399+
enableSorting={false}
400+
enableColumnFilter={false}
401+
enableGlobalFilter={false}
398402
/>
399403
<ArchbaseDataGridColumn<UserDto>
400404
dataField="isAdministrator"

0 commit comments

Comments
 (0)