aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src
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
parent1e9f2a9d1cc7f0ce8fc699493aa3a4f6c3b01c40 (diff)
downloadgit-bug-51b0d70985d7c9daaeb80e0216818fa3011653b5.tar.gz
webui: minor css improvements
Diffstat (limited to 'webui/src')
-rw-r--r--webui/src/bug/Message.js1
-rw-r--r--webui/src/list/BugRow.js24
2 files changed, 15 insertions, 10 deletions
diff --git a/webui/src/bug/Message.js b/webui/src/bug/Message.js
index 612a9563..2a96e52d 100644
--- a/webui/src/bug/Message.js
+++ b/webui/src/bug/Message.js
@@ -23,6 +23,7 @@ const styles = theme => ({
backgroundColor: '#fff',
minHeight: 50,
padding: 5,
+ whiteSpace: 'pre-wrap',
}
})
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'}>