Fix staff members table

This commit is contained in:
dominik-zeglen 2020-09-28 12:32:32 +02:00
parent dd6695070c
commit 3d3f2fa924
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

@ -181011,6 +181011,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"
> >
@ -181690,6 +181696,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"
> >