material-react-table 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.0",
2
+ "version": "0.17.1",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of TanStack React Table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -13,7 +13,7 @@ export const MRT_TableHeadCellResizeHandle: FC<Props> = ({
13
13
  }) => {
14
14
  const { getState } = instance;
15
15
 
16
- const { showFilters } = getState();
16
+ const { density, showFilters } = getState();
17
17
 
18
18
  const { column } = header;
19
19
 
@@ -29,13 +29,14 @@ export const MRT_TableHeadCellResizeHandle: FC<Props> = ({
29
29
  borderRightWidth: '2px',
30
30
  cursor: 'col-resize',
31
31
  height: showFilters && columnDefType === 'data' ? '4rem' : '2rem',
32
+ mr: density === 'compact' ? '-0.5rem' : '-1rem',
32
33
  opacity: 0.8,
33
34
  position: 'absolute',
34
- mr: '-1rem',
35
35
  right: '1px',
36
36
  touchAction: 'none',
37
37
  transition: column.getIsResizing() ? undefined : 'all 0.2s ease-in-out',
38
38
  userSelect: 'none',
39
+ zIndex: 4,
39
40
  '&:active': {
40
41
  backgroundColor: theme.palette.info.main,
41
42
  opacity: 1,