Add fixed table layout

This commit is contained in:
Krzysztof Bialoglowicz 2019-10-17 15:52:48 +02:00
parent 1ec53b49b5
commit ec01fec821

View file

@ -33,11 +33,21 @@ const useStyles = makeStyles((theme: Theme) => ({
textAlign: "right" textAlign: "right"
}, },
colActive: {}, colActive: {},
colName: {} colName: {
"&&": {
width: "auto"
}
}
}, },
colAction: {}, colAction: {},
colActive: {}, colActive: {},
colName: {}, colName: {
paddingLeft: 0,
width: 250
},
table: {
tableLayout: "fixed"
},
tableRow: { tableRow: {
cursor: "pointer" cursor: "pointer"
} }
@ -60,7 +70,7 @@ const WebhooksList: React.FC<WebhooksListProps> = ({
const classes = useStyles({}); const classes = useStyles({});
return ( return (
<Card> <Card>
<Table> <Table className={classes.table}>
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCell className={classes.colName} padding="dense"> <TableCell className={classes.colName} padding="dense">