1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Added tooltipOnParentHover to taint tooltip on nodes list page (#3939)

Co-authored-by: gabriel.henriques gabriel.henriques <gabriel.henriques@g.globo>
This commit is contained in:
Gabriel Henriques 2021-10-04 14:15:08 -03:00 committed by GitHub
parent 1d045ec62c
commit 2ff91b0ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ export class Nodes extends React.Component<Props> {
this.renderDiskUsage(node),
<>
<span id={tooltipId}>{node.getTaints().length}</span>
<Tooltip targetId={tooltipId} style={{ whiteSpace: "pre-line" }}>
<Tooltip targetId={tooltipId} tooltipOnParentHover={true} style={{ whiteSpace: "pre-line" }}>
{node.getTaints().map(({ key, effect }) => `${key}: ${effect}`).join("\n")}
</Tooltip>
</>,