Fix spaces breaking the bar

This commit is contained in:
José Carlos Cuevas 2019-05-07 14:27:25 +02:00
parent 05b97399c0
commit 184080a179
2 changed files with 4 additions and 5 deletions

View file

@ -17,8 +17,8 @@ var drawProgressBars = function(to_do, doing, done) {
let done_percent = 0;
if (total > 0) {
let doing_percent = (doing / total) * 100;
let done_percent = (done / total) * 100;
doing_percent = (doing / total) * 100;
done_percent = (done / total) * 100;
}
let pointsBarElement = document.getElementById('pointsBar');
@ -34,8 +34,7 @@ var drawProgressBars = function(to_do, doing, done) {
<div style="width: 100px">
<div class="tooltipped tooltipped-s" aria-label="${done} done / ${doing} in progress / ${to_do} to do">
<span class="progress-bar progress-bar-small">
<span style="width: ${done_percent}%" class="progress d-inline-block bg-blue">&nbsp;</span>
<span style="width: ${doing_percent}%" class="progress d-inline-block bg-yellow">&nbsp;</span>
<span style="width: ${done_percent}%;" class="progress d-inline-block bg-blue">&nbsp;</span><span style="width: ${doing_percent}%;" class="progress d-inline-block bg-yellow">&nbsp;</span>
</span>
</div>
</div>`;

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "GithubPoints",
"version": "1.1",
"version": "1.1.2",
"description": "Adds points and summary to the Github Project page",