fix: sync gradient border with completion badge state

This commit is contained in:
2026-01-14 03:14:10 +01:00
parent 9d786b5cf4
commit 18f6b6d8ab

View File

@@ -464,9 +464,10 @@ function loadCurrentLesson() {
} else {
elements.runBtn.querySelector("span").textContent = t("run");
// Remove completion badge if exists
// Remove completion badge and border if exists
const badge = document.querySelector(".completion-badge");
if (badge) badge.remove();
elements.previewWrapper?.classList.remove("completed-glow");
}
// Update level indicator