diff --git a/src/modules/ui.js b/src/modules/ui.js index e787bb6..7db3f27 100644 --- a/src/modules/ui.js +++ b/src/modules/ui.js @@ -185,6 +185,7 @@ export const ui = (() => { const completed = todo.checks.filter(item => item.isDone).length; const percentage = completed * 100 / todo.checks.length; progress.style.background = `conic-gradient(#2e10c0 ${percentage}%, transparent ${percentage}%, transparent 100%)` + progress.style.opacity = todo.checks.length === 0 ? "0%" : "100%"; const description = document.createElement("p"); description.classList.add("description");