Skip to content

Commit

Permalink
Fixed molecule view of cross reference dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriána Kohanová committed Nov 10, 2020
1 parent fb6878b commit 165a485
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/components/datasets/crossReferenceDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const useStyles = makeStyles(theme => ({
},
content: {
overflowY: 'auto',
height: 214
height: 214,
width: 'fit-content'
},
search: {
margin: theme.spacing(1),
Expand Down
12 changes: 11 additions & 1 deletion js/components/datasets/datasetMoleculeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ const useStyles = makeStyles(theme => ({
inheritWidth: {
width: 'inherit'
},
widthOverflow: {
maxWidth: '180px',
overflow: 'hidden'
},
rank: {
fontStyle: 'italic',
fontSize: 7
Expand Down Expand Up @@ -553,7 +557,13 @@ export const DatasetMoleculeView = memo(
</Grid>
<Grid item container className={classes.detailsCol} justify="space-between" direction="row">
{/* Title label */}
<Grid item xs={!showCrossReferenceModal && hideFButton ? 8 : 7} container direction="column">
<Grid
item
xs={!showCrossReferenceModal && hideFButton ? 8 : 7}
container
direction="column"
className={!showCrossReferenceModal && hideFButton ? classes.widthOverflow : ''}
>
<Grid item className={classes.inheritWidth}>
<Tooltip title={moleculeTitle} placement="bottom-start">
<div className={classNames(classes.moleculeTitleLabel, isCheckedToBuy && classes.selectedMolecule)}>
Expand Down

0 comments on commit 165a485

Please sign in to comment.