Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] minimum width for "TableRowColumn" #4247

Closed
francescabarbazeni87 opened this issue May 12, 2016 · 4 comments
Closed

[Table] minimum width for "TableRowColumn" #4247

francescabarbazeni87 opened this issue May 12, 2016 · 4 comments
Labels
component: table This is the name of the generic UI component, not the React module! new feature New feature or request

Comments

@francescabarbazeni87
Copy link

Description

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.

@eduedix
Copy link

eduedix commented Jun 14, 2016

@francescabarbazeni87 could you figure out any solution around that?

@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@oliviertassinari oliviertassinari added the component: table This is the name of the generic UI component, not the React module! label Dec 18, 2016
@oliviertassinari oliviertassinari added good first issue Great for first contributions. Enable to learn the contribution process. v1 labels Jul 28, 2017
@AndriusBil
Copy link
Contributor

AndriusBil commented Sep 18, 2017

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>
);
//...

@eromoe
Copy link

eromoe commented Sep 29, 2017

Why not TableCell can not add xs like Grid ??

@oliviertassinari oliviertassinari removed v1.x good first issue Great for first contributions. Enable to learn the contribution process. labels Dec 7, 2017
@oliviertassinari oliviertassinari added the new feature New feature or request label Feb 11, 2018
@oliviertassinari
Copy link
Member

@AndriusBil Thanks for sharing a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants