GwtMaterialDesign / gwt-material-table

A complex table component designed for the material design specifications
https://gwtmaterialdesign.github.io/gmd-table-demo/
Apache License 2.0
27 stars 31 forks source link

Alignment of column headers not working #218

Open c-kob opened 1 year ago

c-kob commented 1 year ago

When adding a column and setting the textalign property, this is effectively ignored because table headers are wrapped in a div (without any CSS reference) that sets "display: flex;", so all headers are pushed to the left.

Not sure where that comes from nor what purpose it is meant to serve, but a workaround is to add some custom css that overwrites, e.g.

th > div { display: block !important; }