diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-09 17:39:40 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-09 17:39:40 +0100 |
commit | 0b99123f27c553cb4b1bbc41d39c0d62adb6840a (patch) | |
tree | cc1ae804cdc55c5d176c9a2c56244bf51286f1f4 /server/sonar-web | |
parent | a749013e0af281ac0eb19f35fe9f282f3bc80121 (diff) | |
download | sonarqube-0b99123f27c553cb4b1bbc41d39c0d62adb6840a.tar.gz sonarqube-0b99123f27c553cb4b1bbc41d39c0d62adb6840a.zip |
hide link icon on very small treemap cells
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/components/charts/treemap.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/components/charts/treemap.js b/server/sonar-web/src/main/js/components/charts/treemap.js index 44d54dd698f..fe27224a9be 100644 --- a/server/sonar-web/src/main/js/components/charts/treemap.js +++ b/server/sonar-web/src/main/js/components/charts/treemap.js @@ -45,6 +45,10 @@ export const TreemapRect = React.createClass({ return null; } + if (this.props.width < 24 || this.props.height < 24) { + return null; + } + return <a onClick={e => e.stopPropagation()} className="treemap-link" href={this.props.link} |