]> source.dussan.org Git - sonarqube.git/commitdiff
hide link icon on very small treemap cells
authorStas Vilchik <vilchiks@gmail.com>
Wed, 9 Dec 2015 16:39:40 +0000 (17:39 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 9 Dec 2015 16:39:40 +0000 (17:39 +0100)
server/sonar-web/src/main/js/components/charts/treemap.js

index 44d54dd698f0865e712852d7bffcc41dac22a0e3..fe27224a9be554df5f7f74235e1b0537fe10fe94 100644 (file)
@@ -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}