It could be usefull to set the minimum width for a table row column.
In this way when we have a large number of columns the table could automatically show the horizontal overflow.
@francescabarbazeni87 could you figure out any solution around that?
You could work around it using custom styles:
//...
const styles = {
longCell: {
minWidth: '1000px',
},
tableWrapper: {
overflowX: 'auto',
},
};
const LongTable = ({classes}) => (
<div className={classes.tableWrapper}>
<Table>
<TableHead>
<TableRow>
<TableCell>ID</TableCell>
<TableCell className={classes.longCell}>Long Cell</TableCell>
</TableRow>
</TableHead>
</Table>
</div>
);
//...
Why not TableCell can not add xs like Grid ??
@AndriusBil Thanks for sharing a solution.
Most helpful comment
You could work around it using custom styles: