-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix column resizing and add global to density classes (#170)
Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
- Loading branch information
1 parent
7574558
commit 5df845d
Showing
4 changed files
with
40 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 18 additions & 17 deletions
35
packages/mantine-react-table/src/head/MRT_TableHeadCellResizeHandle.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
.MRT_TableHeadCellResizeHandle { | ||
.root { | ||
cursor: col-resize; | ||
margin-right: var(--margin-right); | ||
position: absolute; | ||
right: 4px; | ||
padding-left: 1px; | ||
padding-right: 2px; | ||
transform: var(--transform); | ||
&:active > .mantine-Divider-vertical { | ||
border-left-color: var(--mantine-color-default); | ||
} | ||
} | ||
|
||
.MRT_TableHeadCellResizeHandleDivider { | ||
border-radius: 2px; | ||
border-width: 4px; | ||
right: 0px; | ||
width: 3px; | ||
height: 24px; | ||
touch-action: none; | ||
transition: var(--transition); | ||
user-select: none; | ||
z-index: 4; | ||
margin-right: -10px; | ||
&:global(.md) { | ||
margin-right: -16px; | ||
} | ||
&:global(.xl) { | ||
margin-right: -22px; | ||
} | ||
background: var(--mantine-color-placeholder); | ||
&:hover { | ||
background: var(--mantine-primary-color-filled-hover); | ||
} | ||
&:active { | ||
background: var(--mantine-primary-color-filled); | ||
} | ||
transform: var(--mrt-transform); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters