diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-30 16:25:44 +0200 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-04-08 14:57:39 +0200 |
commit | 4d4172bb4c7bac5f801ef67f60ff9c58021d3080 (patch) | |
tree | c091ebbd1b6220c0467ab9a32e0577f2068f0127 /webui/src/pages/bug/LabelChange.tsx | |
parent | f5df854def95e35e6fc2b408ecf746dcc0a8d38a (diff) | |
download | git-bug-4d4172bb4c7bac5f801ef67f60ff9c58021d3080.tar.gz |
Cut of very long labels with an ellipse
Diffstat (limited to 'webui/src/pages/bug/LabelChange.tsx')
-rw-r--r-- | webui/src/pages/bug/LabelChange.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webui/src/pages/bug/LabelChange.tsx b/webui/src/pages/bug/LabelChange.tsx index c40636c1..fd466ab8 100644 --- a/webui/src/pages/bug/LabelChange.tsx +++ b/webui/src/pages/bug/LabelChange.tsx @@ -30,12 +30,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} maxWidth="50ch" /> ))} {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} maxWidth="50ch" /> ))} <span> {' '} |