mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Phone Number fields with dashes displaying on multiple lines

Open allenjoy123 opened this issue 8 years ago • 1 comments

Phone Number fields with dashes display the number on multiple lines delimited on the dashes.

Expected Behavior

I would prefer the full phone number display on one line. Is this an expected behavior. When I remove the dashes from the number, it displays on one line.

Current Behavior

Ex: 835-525-2188 as a data value of a cell displays on 3 lines within the cell. Please see screen shot below. screen shot 2018-10-03 at 6 25 32 am

If one of the values in the column didn't have dashes, then it seems that the field now has more space to place the number on two lines instead of three as shown in screenshot below.

screen shot 2018-10-03 at 6 23 09 am

Tech Version
Material-UI 3.0.2
MUI-datatables 2.0.0-beta-29
React ^16.5.0
browser chrome
etc

allenjoy123 avatar Oct 02 '18 19:10 allenjoy123

Resolved the issue with the following code MUIDataTableBodyCell: { responsiveStacked: { whiteSpace: "pre", }, }

allenjoy123 avatar Oct 04 '18 14:10 allenjoy123