aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 19:16:58 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 19:16:58 -0700
commit9801338e03965ec28af9369b850f339ba534003f (patch)
treebe8caf0340eed872e0db94c4cbd48fb854a80859 /modern/src
parent44e753b794513c5c9c1f550d685461e6c5bb0d11 (diff)
downloadtrackermap-web-9801338e03965ec28af9369b850f339ba534003f.tar.gz
trackermap-web-9801338e03965ec28af9369b850f339ba534003f.tar.bz2
trackermap-web-9801338e03965ec28af9369b850f339ba534003f.zip
Move action column to the left
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/admin/UsersPage.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/modern/src/admin/UsersPage.js b/modern/src/admin/UsersPage.js
index 30268e3e..85ee2488 100644
--- a/modern/src/admin/UsersPage.js
+++ b/modern/src/admin/UsersPage.js
@@ -13,7 +13,8 @@ const useStyles = makeStyles(theme => ({
height: '100%',
},
columnAction: {
- width: theme.spacing(8),
+ width: theme.spacing(1),
+ padding: theme.spacing(0, 1),
},
fab: {
position: 'absolute',
@@ -68,25 +69,25 @@ const UsersPage = () => {
<Table>
<TableHead>
<TableRow>
+ <TableCell className={classes.columnAction} />
<TableCell>{t('sharedName')}</TableCell>
<TableCell>{t('userEmail')}</TableCell>
<TableCell>{t('userAdmin')}</TableCell>
<TableCell>{t('sharedDisabled')}</TableCell>
- <TableCell className={classes.columnAction}></TableCell>
</TableRow>
</TableHead>
<TableBody>
{data.map((item) => (
<TableRow key={item.id}>
- <TableCell>{formatter(item, 'name')}</TableCell>
- <TableCell>{formatter(item, 'email')}</TableCell>
- <TableCell>{formatter(item, 'administrator')}</TableCell>
- <TableCell>{formatter(item, 'disabled')}</TableCell>
<TableCell className={classes.columnAction} padding="none">
<IconButton onClick={(event) => handleMenuOpen(event, item.id)}>
<MoreVertIcon />
</IconButton>
</TableCell>
+ <TableCell>{formatter(item, 'name')}</TableCell>
+ <TableCell>{formatter(item, 'email')}</TableCell>
+ <TableCell>{formatter(item, 'administrator')}</TableCell>
+ <TableCell>{formatter(item, 'disabled')}</TableCell>
</TableRow>
))}
</TableBody>