aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages/bug/LabelChange.tsx
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-04-12 19:17:26 +0200
committerGitHub <noreply@github.com>2021-04-12 19:17:26 +0200
commit491f0ea9513e8080f6b38885b1a05f47fb56d9dc (patch)
treeed858dde9305130a9fd6a8a32e172f9637531f34 /webui/src/pages/bug/LabelChange.tsx
parentc71d26d513e4e5e36e6983e05dee4ad28ec664c7 (diff)
parentc37d3d771806f9709c0c9fc77b5bbf8806a2ec23 (diff)
downloadgit-bug-491f0ea9513e8080f6b38885b1a05f47fb56d9dc.tar.gz
Merge pull request #627 from GlancingMind/upstream-set-bug-labels
WebUI: Set bug labels
Diffstat (limited to 'webui/src/pages/bug/LabelChange.tsx')
-rw-r--r--webui/src/pages/bug/LabelChange.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/webui/src/pages/bug/LabelChange.tsx b/webui/src/pages/bug/LabelChange.tsx
index c40636c1..712c33fa 100644
--- a/webui/src/pages/bug/LabelChange.tsx
+++ b/webui/src/pages/bug/LabelChange.tsx
@@ -16,6 +16,11 @@ const useStyles = makeStyles((theme) => ({
author: {
fontWeight: 'bold',
},
+ label: {
+ maxWidth: '50ch',
+ marginLeft: theme.spacing(0.25),
+ marginRight: theme.spacing(0.25),
+ },
}));
type Props = {
@@ -30,12 +35,12 @@ function LabelChange({ op }: Props) {
<Author author={op.author} className={classes.author} />
{added.length > 0 && <span> added the </span>}
{added.map((label, index) => (
- <Label key={index} label={label} />
+ <Label key={index} label={label} className={classes.label} />
))}
{added.length > 0 && removed.length > 0 && <span> and</span>}
{removed.length > 0 && <span> removed the </span>}
{removed.map((label, index) => (
- <Label key={index} label={label} />
+ <Label key={index} label={label} className={classes.label} />
))}
<span>
{' '}