-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken centered header #414
Comments
There's no issue with version 2.0.0-beta.4 |
I'm on |
Actually, in my case it seems the class It just looks odd. |
I solved this problem by adding this in my main css: /* in my global style.css */
.MRT_TableHeadCell-module_labels-center__MM9q8 {
padding-left: 0;
} /* in mantine-react-table/styles.css */
.MRT_TableHeadCell-module_labels-center__MM9q8 {
padding-left: calc(var(--mrt-table-head-cell-labels-padding-left) * 1rem);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mantine-react-table version
2.0.0-beta.6
react & react-dom versions
18.3.3
Describe the bug and the steps to reproduce it
I am trying to get a clean centered header and body, without sorting and action buttons. I found out that it can be done by setting props to columns
It works for the body, but not for the header.
The header is always padded by 1.75. The only line that contains such number is this.
It seems that there's something wrong with conditions. Setting "enableHeaderActionsHoverReveal" to "true" resolves the issue, until someone hovers over the header and then it's broken again.
Minimal, Reproducible Example - (Optional, but Recommended)
https://codesandbox.io/p/devbox/laughing-wave-7zm749?workspaceId=55c06326-b743-49a1-aca3-3feb22fee983
Screenshots or Videos (Optional)
Screencast_20240923_162325.webm
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms
The text was updated successfully, but these errors were encountered: