mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-10 00:30:55 +08:00
truncate uses tooltip2
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React, { cloneElement } from "react";
|
import React, { cloneElement } from "react";
|
||||||
import { Tooltip, Position } from "@blueprintjs/core";
|
import { Tooltip2 } from "@blueprintjs/popover2";
|
||||||
|
|
||||||
import { tooltipHoverOpenDelayQuick } from "../../globals";
|
import { tooltipHoverOpenDelayQuick } from "../../globals";
|
||||||
|
|
||||||
@@ -86,18 +86,12 @@ export default (props) => {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<Tooltip
|
<Tooltip2
|
||||||
content={originalString}
|
content={originalString}
|
||||||
hoverOpenDelay={tooltipHoverOpenDelayQuick}
|
hoverOpenDelay={tooltipHoverOpenDelayQuick}
|
||||||
position={Position.LEFT}
|
|
||||||
usePortal
|
|
||||||
modifiers={{
|
|
||||||
preventOverflow: { enabled: false },
|
|
||||||
hide: { enabled: false },
|
|
||||||
}}
|
|
||||||
targetProps={{ style: children.props.style }}
|
targetProps={{ style: children.props.style }}
|
||||||
>
|
>
|
||||||
{newChildren}
|
{newChildren}
|
||||||
</Tooltip>
|
</Tooltip2>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user