mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
Merge pull request #911 from weaveworks/908-shorter-child-tooltips
Just show the untruncated label in the tooltip on children
This commit is contained in:
@@ -17,22 +17,16 @@ export default class NodeDetailsTableNodeLink extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const titleLines = [`${this.props.label} (${this.props.topologyId})`];
|
||||
this.props.metadata.forEach(data => {
|
||||
titleLines.push(`${data.label}: ${data.value}`);
|
||||
});
|
||||
const title = titleLines.join('\n');
|
||||
|
||||
if (this.props.linkable) {
|
||||
return (
|
||||
<span className="node-details-table-node-link truncate" title={title}
|
||||
<span className="node-details-table-node-link truncate" title={this.props.label}
|
||||
onClick={this.handleClick}>
|
||||
{this.props.label}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<span className="node-details-table-node truncate" title={title}>
|
||||
<span className="node-details-table-node truncate" title={this.props.label}>
|
||||
{this.props.label}
|
||||
</span>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user