# HG changeset patch # User domruf # Date 2017-07-31 21:16:41 # Node ID 9d79a66b18c94c87b5ed1a3b1ad86662ba0bea9d # Parent a3a2dc51f0d6b16aaa643686607f85f50a8cfa83 summary: put text outside of trending files bar if < 5% The text can't be read otherwise. In the future this should also react to the screen size. diff --git a/kallithea/templates/summary/summary.html b/kallithea/templates/summary/summary.html --- a/kallithea/templates/summary/summary.html +++ b/kallithea/templates/summary/summary.html @@ -360,10 +360,14 @@ $(document).ready(function(){ + "aria-valuemin='0' aria-valuemax='100' aria-valuenow='" + percentage + "' style='width: " + percentage + "%;'>" + percentage + "%, " + nr_files + ""; } - else{ + else if (percentage>5){ trending_language.innerHTML = "" + percentage + "%"; + }else{ + trending_language.innerHTML = "  " + percentage + "%"; } td2.appendChild(trending_language);