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

[Table] TableRowColumn not handling long text well

Open lucasbento opened this issue 10 years ago • 2 comments

Problem description

0.15.4

image

0.16

image

Steps to reproduce

Provide a very long text to <TableRowColumn />: http://www.webpackbin.com/VkzfhMPRW

Seems to have been introduced by https://github.com/callemall/material-ui/commit/252449d48007e1abe9f043166b0c9121fe25065c.

Versions

  • Material-UI: 0.16.0
  • React: 15.3.2
  • Browser: Chrome 53.0.2785.143 (64-bit)

If we remove the whiteSpace: nowrap, it will allow multiple lines, any idea on how we can fix this, @oliviertassinari ?

lucasbento avatar Oct 12 '16 12:10 lucasbento

I'm fine with reverting 252449d48007e1abe9f043166b0c9121fe25065c. The <Tooltip /> should most likely be render outside of the current DOM hierarchy.

oliviertassinari avatar Oct 12 '16 12:10 oliviertassinari

I wish that multiline was an option, not the default, but to give a TableRow the multiLine option like a TextField, so that the whole row will be as high as the highest row, i.e. to add whiteSpace: 'normal' to each TableRowColumn, but also add an extra padding (about 12px?), because it doesn't look good without it.

Same for: TableHeader/TableHeaderColumn would be nice

BlockChange avatar Nov 15 '16 15:11 BlockChange