Lookup dropdown is positioned slightly to the bottom compared to normal filter
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?
+1
@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.
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 ;-)
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 }
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.