diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2019-09-04 20:03:56 +0200 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2019-09-04 20:14:32 +0200 |
commit | 0ad23d0e24d876ff9bcd6b5d83c1514de132522f (patch) | |
tree | 226f10f275fa6a848fc3aca09ec1bff1d8d15cbe /webui/src/list | |
parent | 87c64cd8fba04f3d88a60ee0df07259523113bf0 (diff) | |
download | git-bug-0ad23d0e24d876ff9bcd6b5d83c1514de132522f.tar.gz |
webui: Fix bug listing style
Diffstat (limited to 'webui/src/list')
-rw-r--r-- | webui/src/list/BugRow.js | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/webui/src/list/BugRow.js b/webui/src/list/BugRow.js index 4444dbc9..7b601916 100644 --- a/webui/src/list/BugRow.js +++ b/webui/src/list/BugRow.js @@ -38,21 +38,34 @@ const useStyles = makeStyles(theme => ({ cell: { display: 'flex', alignItems: 'center', + padding: theme.spacing(1), '& a': { textDecoration: 'none', }, }, status: { - margin: 10, + margin: theme.spacing(1, 2), }, expand: { width: '100%', + lineHeight: '20px', }, title: { display: 'inline', + color: theme.palette.text.primary, + fontSize: '1.3rem', + fontWeight: 500, + }, + details: { + ...theme.typography.textSecondary, + lineHeight: '1.5rem', + color: theme.palette.text.secondary, }, labels: { paddingLeft: theme.spacing(1), + '& > *': { + display: 'inline-block', + }, }, })); @@ -65,9 +78,7 @@ function BugRow({ bug }) { <div className={classes.expand}> <Link to={'bug/' + bug.humanId}> <div className={classes.expand}> - <Typography variant={'h6'} className={classes.title}> - {bug.title} - </Typography> + <span className={classes.title}>{bug.title}</span> {bug.labels.length > 0 && ( <span className={classes.labels}> {bug.labels.map(l => ( @@ -77,11 +88,11 @@ function BugRow({ bug }) { )} </div> </Link> - <Typography color={'textSecondary'}> + <div className={classes.details}> {bug.humanId} opened <Date date={bug.createdAt} /> by {bug.author.displayName} - </Typography> + </div> </div> </TableCell> </TableRow> |