Skip to content

Commit

Permalink
xchem#66 fix padding of quality labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 10, 2020
1 parent 6f778b1 commit d3b41d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion js/components/preview/molecule/moleculeStatusView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const useStyles = makeStyles(theme => ({
fontSize: '9px'
},
refinementOutcome: {
paddingTop: theme.spacing(1) / 2
paddingTop: theme.spacing(1) / 2,
width: 16,
height: 24
}
}));

Expand Down
6 changes: 1 addition & 5 deletions js/components/preview/molecule/refinementOutcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ class RefinementOutcome extends React.PureComponent {
break;
}

return imgSource ? (
<div className={className}>
<img src={imgSource} style={{ width: 16, height: 16 }} />
</div>
) : null;
return <div className={className}>{imgSource && <img src={imgSource} style={{ width: 16, height: 16 }} />}</div>;
}
}

Expand Down

0 comments on commit d3b41d0

Please sign in to comment.