Stop auto employee buttons moving around when the numbers change

This commit is contained in:
Staszek Welsh 2022-06-01 18:34:24 +01:00
parent 7d3a43f7b5
commit 1ba5902e1e

@ -203,7 +203,7 @@ function AutoAssignJob(props: IAutoAssignProps): React.ReactElement {
return ( return (
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Tooltip title={props.desc}> <Tooltip title={props.desc}>
<Typography> <Typography>
{props.job} ({(currJob == nextJob ? currJob : `${currJob} -> ${nextJob}`)}) {props.job} ({(currJob == nextJob ? currJob : `${currJob} -> ${nextJob}`)})
@ -256,7 +256,7 @@ function AutoManagement(props: IProps): React.ReactElement {
<Table padding="none"> <Table padding="none">
<TableBody> <TableBody>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Typography>Unassigned Employees:</Typography> <Typography>Unassigned Employees:</Typography>
</TableCell> </TableCell>
<TableCell> <TableCell>
@ -264,7 +264,7 @@ function AutoManagement(props: IProps): React.ReactElement {
</TableCell> </TableCell>
</TableRow> </TableRow>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Typography>Avg Employee Morale:</Typography> <Typography>Avg Employee Morale:</Typography>
</TableCell> </TableCell>
<TableCell> <TableCell>
@ -272,7 +272,7 @@ function AutoManagement(props: IProps): React.ReactElement {
</TableCell> </TableCell>
</TableRow> </TableRow>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Typography>Avg Employee Happiness:</Typography> <Typography>Avg Employee Happiness:</Typography>
</TableCell> </TableCell>
<TableCell> <TableCell>
@ -280,7 +280,7 @@ function AutoManagement(props: IProps): React.ReactElement {
</TableCell> </TableCell>
</TableRow> </TableRow>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Typography>Avg Employee Energy:</Typography> <Typography>Avg Employee Energy:</Typography>
</TableCell> </TableCell>
<TableCell> <TableCell>
@ -288,7 +288,7 @@ function AutoManagement(props: IProps): React.ReactElement {
</TableCell> </TableCell>
</TableRow> </TableRow>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Typography>Total Employee Salary:</Typography> <Typography>Total Employee Salary:</Typography>
</TableCell> </TableCell>
<TableCell> <TableCell>
@ -300,7 +300,7 @@ function AutoManagement(props: IProps): React.ReactElement {
{vechain && ( {vechain && (
<> <>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Tooltip <Tooltip
title={ title={
<Typography> <Typography>
@ -320,7 +320,7 @@ function AutoManagement(props: IProps): React.ReactElement {
</TableCell> </TableCell>
</TableRow> </TableRow>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Tooltip <Tooltip
title={ title={
<Typography> <Typography>
@ -345,7 +345,7 @@ function AutoManagement(props: IProps): React.ReactElement {
</TableCell> </TableCell>
</TableRow> </TableRow>
<TableRow> <TableRow>
<TableCell> <TableCell width="70%">
<Tooltip <Tooltip
title={<Typography>The effect this office's 'Business' employees has on boosting sales</Typography>} title={<Typography>The effect this office's 'Business' employees has on boosting sales</Typography>}
> >