Skip to content

Commit

Permalink
#538 Add additional information to vector selector compounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriána Kohanová committed Feb 16, 2021
1 parent c65f967 commit 3788875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/components/preview/compounds/compoundDataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const CompoundDataView = memo(({ currentCompoundIds, isTooltip, index })
{isTooltip === true ? (
<div>{data}</div>
) : (
<Tooltip title={data} placement="bottom-start">
<Tooltip title={data} placement="top" PopperProps={{ disablePortal: true }}>
<div className={classes.moleculeTitleLabel}>{data}</div>
</Tooltip>
)}
Expand Down
6 changes: 5 additions & 1 deletion js/components/preview/compounds/compoundView.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export const CompoundView = memo(({ height, width, data, index }) => {
}}
style={current_style}
>
<Tooltip title={<CompoundDataView currentCompoundIds={currentCompoundIds} isTooltip={true} index={index} />}>
<Tooltip
PopperProps={{ disablePortal: true }}
placement="top"
title={<CompoundDataView currentCompoundIds={currentCompoundIds} isTooltip={true} index={index} />}
>
<SVGInline svg={image} />
</Tooltip>
<CompoundDataView currentCompoundIds={currentCompoundIds} isTooltip={false} index={index} />
Expand Down

0 comments on commit 3788875

Please sign in to comment.