summaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-09 17:39:40 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-09 17:39:40 +0100
commit0b99123f27c553cb4b1bbc41d39c0d62adb6840a (patch)
treecc1ae804cdc55c5d176c9a2c56244bf51286f1f4 /server/sonar-web
parenta749013e0af281ac0eb19f35fe9f282f3bc80121 (diff)
downloadsonarqube-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.js4
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}