aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/list/BugRow.js
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-16 18:19:53 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-16 18:19:53 +0200
commit51b0d70985d7c9daaeb80e0216818fa3011653b5 (patch)
tree4d24f2c0810b6e718ef3857892a7f1e36018d189 /webui/src/list/BugRow.js
parent1e9f2a9d1cc7f0ce8fc699493aa3a4f6c3b01c40 (diff)
downloadgit-bug-51b0d70985d7c9daaeb80e0216818fa3011653b5.tar.gz
webui: minor css improvements
Diffstat (limited to 'webui/src/list/BugRow.js')
-rw-r--r--webui/src/list/BugRow.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/webui/src/list/BugRow.js b/webui/src/list/BugRow.js
index dba498d2..9f55809d 100644
--- a/webui/src/list/BugRow.js
+++ b/webui/src/list/BugRow.js
@@ -32,7 +32,10 @@ const Status = ({status, className}) => {
const styles = theme => ({
cell: {
display: 'flex',
- alignItems: 'center'
+ alignItems: 'center',
+ '& a': {
+ textDecoration: 'none'
+ }
},
status: {
margin: 10
@@ -41,11 +44,11 @@ const styles = theme => ({
width: '100%'
},
title: {
- display: 'inline-block',
- textDecoration: 'none'
+ display: 'inline',
},
labels: {
- display: 'inline-block',
+ ...theme.typography.body2,
+ display: 'inline',
paddingLeft: theme.spacing.unit,
}
})
@@ -57,15 +60,16 @@ const BugRow = ({bug, classes}) => (
<div className={classes.expand}>
<Link to={'bug/' + bug.humanId}>
<div className={classes.expand}>
-
<Typography variant={'title'} className={classes.title}>
{bug.title}
</Typography>
- <span className={classes.labels}>
- {bug.labels.map(l => (
- <Label key={l} label={l}/>
- ))}
- </span>
+ { bug.labels.length > 0 && (
+ <span className={classes.labels}>
+ {bug.labels.map(l => (
+ <Label key={l} label={l}/>
+ ))}
+ </span>
+ )}
</div>
</Link>
<Typography color={'textSecondary'}>