Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTable issue with header row not aligning with content rows. #748
Comments
|
I'm using Brave browser (current version).
edit: I tried and it isn't working in vanilla Chrome for me either (checked in incognito mode with no extensions)
edit 2: Very strange, even using MS Edge browser I see the exact same thing... Strange. This must me something with my PC. Somehow. |
|
Super weird...I'd expect all of those browsers to have the same behavior... Would it be possible for you to inspect those elements and try to highlight where exactly the discrepancy in width is stemming from? |
|
I can confirm that if I simply delete the 17px right padding class in the inspector evergreen/src/table/src/TableHead.js Line 48 in 326c4a2 This looks to be the culprit? Not sure why it is adding padding to the right of the table header because it isn't doing anything differently. Even with no scrollbar visible it has the 17px padding. |
|
It's there to account for the table scroll bar, not the window scrollbar. |
|
So strange though, I checked my windows settings to see if there is an OS level setting which could be causing grief. There is no scrollbar in the table in any examples where I am seeing the incorrect padding. |
|
I updated my earlier comment above where I said it all looks fine in the table documentation. |
I dont know how you got this to work. See below... |
|
On my Macbook I don't have the issue. The 17px scrollbar class does not get applied. Windows seems to be the common thread here... are you using Windows? |
|
I think we're all on macs, let me boot up my windows machine and see what happens after work. I'll update you tonight! |
|
@cstrat I apologize for the late reply, I came down with a cold the last few days... Anyway, I was able to reproduce this instantly on a windows machine... so it seems like a pretty common windows issue. I'll dig into it more when I get some time |
|
All good @Chrischuck, no need to explain - hope you're better. I spent a good amount of time trying to work it out but was left pulling my hair out. |
cstrat
mentioned this issue

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
















Unsure if I am doing something wrong, but I can't ever get my header row to align with the content rows. It is always off... either too far left or right.
Even copying the example code from the documentation I can't get it to align:
https://codesandbox.io/s/evergreen-table-position-bug-i2el8
I've tried wrapping the table in a but that doesn't seem to help.
In the code-sandbox linked above, how can I fix that alignment issue? Any ideas?
In this one, I've removed the search header and added more columns, still not working.
https://codesandbox.io/s/evergreen-table-position-bug-more-columns-ffgjd
The red boxes are just drawn on top and aren't exact - but you can see the gap changes with each column, typically getting more exaggerated with the distance from the left.