From 7cab942b1321170e465cc9db55f1cfed67faed9e Mon Sep 17 00:00:00 2001 From: HectorVilas <96928935+HectorVilas@users.noreply.github.com> Date: Sat, 14 Jan 2023 17:49:28 -0300 Subject: [PATCH] remove radial progress bar when there's no tasks This action only worked when adding or removing tasks, but not when loading a card. --- src/modules/ui.js | 1 + 1 file changed, 1 insertion(+) 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");