Mui-datatables: Sort icon wraps to a new line whenever table content width < header width

Created on 10 May 2019  路  2Comments  路  Source: gregnb/mui-datatables

Whenever the width of the content is less than that of the header for the column the sort icon wraps to a new line even though there is plenty of space to display it in the same row.

Screen Shot 2019-05-10 at 11 07 45

inspect

Expected Behavior

Sort icon stays in the same row if there is space available

Current Behavior

Sort icon wrapping to a new row

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | ^3.9.3 |
| MUI-datatables | ^2.0.0-beta.59 |
| React | ^16.8.6 |
| browser | Chrome Version 74.0.3729.131 (Official Build) (64-bit) |

bug good first issue

Most helpful comment

Temp fix I used for the same issue:

  getMuiTheme = () => createMuiTheme({
    overrides: {
      MUIDataTableHeadRow: {
        root: {
          whiteSpace: 'nowrap'
        }
      }
    }
  });

All 2 comments

Temp fix I used for the same issue:

  getMuiTheme = () => createMuiTheme({
    overrides: {
      MUIDataTableHeadRow: {
        root: {
          whiteSpace: 'nowrap'
        }
      }
    }
  });

Closing as the merged PR here fixes the issue and this fix will be in the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

T-pirithiviraj picture T-pirithiviraj  路  3Comments

pranavtheway picture pranavtheway  路  3Comments

kylane picture kylane  路  3Comments

naothomachida picture naothomachida  路  3Comments

chapmanjacobd picture chapmanjacobd  路  4Comments