Skip to content

Commit

Permalink
ui/doc: fix the bug when the content of tooltip is empty but still di…
Browse files Browse the repository at this point in the history
…splay

- the bug was imported by adding the <TooltipContent> style

Refs: #2149
  • Loading branch information
ChengYanJin committed Jan 8, 2020
1 parent baf7978 commit fdca4df
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ui/src/containers/NodeVolumes.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ const LoaderContainer = styled(Loader)`
padding-right: ${padding.smaller};
`;

const TooltipContent = styled.div`
background-color: ${props => props.theme.brand.backgroundContrast2};
`;

const NodeVolumes = props => {
const { intl } = props;
const dispatch = useDispatch();
Expand Down Expand Up @@ -202,10 +198,7 @@ const NodeVolumes = props => {

return (
<>
<Tooltip
placement="top"
overlay={<TooltipContent>{hintPopup()}</TooltipContent>}
>
<Tooltip placement="bottom" overlay={hintPopup()}>
<Button
className="remove-volume-button"
onClick={e => {
Expand Down

0 comments on commit fdca4df

Please sign in to comment.