Merge pull request #733 from mirumee/fix/table-layout

Fix staff members table
This commit is contained in:
Dominik Żegleń 2020-09-29 12:56:45 +02:00 committed by GitHub
commit 30c411179f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

@ -51,6 +51,9 @@ const useStyles = makeStyles(
pointerEvents: "none", pointerEvents: "none",
width: "100%" width: "100%"
}, },
colEmail: {
width: 400
},
statusText: { statusText: {
color: "#9E9D9D" color: "#9E9D9D"
}, },
@ -89,6 +92,10 @@ const StaffList: React.FC<StaffListProps> = props => {
return ( return (
<ResponsiveTable> <ResponsiveTable>
<colgroup>
<col />
<col className={classes.colEmail} />
</colgroup>
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCellHeader <TableCellHeader
@ -186,7 +193,7 @@ const StaffList: React.FC<StaffListProps> = props => {
), ),
() => ( () => (
<TableRow> <TableRow>
<TableCell colSpan={3}> <TableCell colSpan={numberOfColumns}>
<FormattedMessage defaultMessage="No staff members found" /> <FormattedMessage defaultMessage="No staff members found" />
</TableCell> </TableCell>
</TableRow> </TableRow>

View file

@ -182391,6 +182391,12 @@ exports[`Storyshots Views / Staff / Staff members default 1`] = `
<table <table
class="MuiTable-root-id" class="MuiTable-root-id"
> >
<colgroup>
<col />
<col
class="StaffList-colEmail-id"
/>
</colgroup>
<thead <thead
class="MuiTableHead-root-id" class="MuiTableHead-root-id"
> >
@ -183070,6 +183076,12 @@ exports[`Storyshots Views / Staff / Staff members when loading 1`] = `
<table <table
class="MuiTable-root-id" class="MuiTable-root-id"
> >
<colgroup>
<col />
<col
class="StaffList-colEmail-id"
/>
</colgroup>
<thead <thead
class="MuiTableHead-root-id" class="MuiTableHead-root-id"
> >