From 0b99123f27c553cb4b1bbc41d39c0d62adb6840a Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 9 Dec 2015 17:39:40 +0100 Subject: [PATCH] hide link icon on very small treemap cells --- server/sonar-web/src/main/js/components/charts/treemap.js | 4 ++++ 1 file changed, 4 insertions(+) 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 e.stopPropagation()} className="treemap-link" href={this.props.link} -- 2.39.5