material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Lookup dropdown is positioned slightly to the bottom compared to normal filter

Open serendipity1004 opened this issue 7 years ago • 5 comments

https://material-table.com/#/docs/features/filtering

If you look at the bottom most example, the lookup column has slightly less padding at the bottom which positions the dropdown lower than default filters. Need to fix this as it looks very ugly. Meanwhile, is there a quick fix for it?

serendipity1004 avatar Sep 03 '19 11:09 serendipity1004

+1

BrunoYTanaka avatar Sep 18 '19 14:09 BrunoYTanaka

@serendipity1004 This was bugging me as well but I found a quick fix until there is an official fix for this.

For each column that has the dropdown filter add

filterCellStyle: { paddingTop: 1 }

This fixed it on chrome and firefox for me.

kthyer avatar Oct 25 '19 20:10 kthyer

thanks @kthyer - not perfect, but good enough as a workaround. unfortunately, this stops me from digging deeper into it and probably finding a proper fix ;-)

tobilarscheid avatar Nov 03 '19 20:11 tobilarscheid

Thanks for pointing us in the right direction for a quick fix, @kthyer. In Chrome, that actually leaves it one pixel lower than the filter inputs for me, so I believe a slight correction is in order: filterCellStyle: { paddingTop: 0 }

janderson215 avatar Dec 05 '19 17:12 janderson215

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Jun 15 '20 09:06 stale[bot]