Skip to content

Commit

Permalink
[frontend] Fix labels spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Jun 20, 2023
1 parent 6cb851f commit 67a050e
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const styles = () => ({
fontSize: 12,
height: 20,
float: 'left',
margin: '0 7px 0 0',
},
labelInSearch: {
height: 25,
Expand All @@ -51,10 +52,12 @@ class StixCoreObjectLabels extends Component {
if (variant === 'inSearch') {
style = classes.labelInSearch;
}
const labelsNodes = labels ? pipe(
map((n) => n.node),
sortWith([ascend(prop('value'))]),
)(labels.edges) : null;
const labelsNodes = labels
? pipe(
map((n) => n.node),
sortWith([ascend(prop('value'))]),
)(labels.edges)
: null;

return (
<div className={classes.objectLabel}>
Expand Down

0 comments on commit 67a050e

Please sign in to comment.