20260318b: Fix countdown bar color - was using non-existent CSS variable

This commit is contained in:
dadaloop82
2026-03-18 06:33:04 +00:00
parent 4536decfaf
commit dae4c4d435
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3587,7 +3587,7 @@ function startMoveModalCountdown(btnId, onExpire) {
function tick() {
const elapsed = performance.now() - start;
const pct = Math.max(0, 100 - (elapsed / duration) * 100);
btn.style.background = `linear-gradient(to right, var(--bg-tertiary) ${pct}%, transparent ${pct}%)`;
btn.style.background = `linear-gradient(to right, rgba(45,80,22,0.2) ${pct}%, transparent ${pct}%)`;
if (elapsed < duration) {
_moveModalRAF = requestAnimationFrame(tick);
}
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -9,7 +9,7 @@
<title>Dispensa Manager</title>
<link rel="manifest" href="manifest.json">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🏠</text></svg>">
<link rel="stylesheet" href="assets/css/style.css?v=20260318a">
<link rel="stylesheet" href="assets/css/style.css?v=20260318b">
<!-- QuaggaJS for barcode scanning -->
<script src="https://cdn.jsdelivr.net/npm/@ericblade/quagga2@1.8.4/dist/quagga.min.js"></script>
</head>
@@ -911,6 +911,6 @@
</div>
</div>
<script src="assets/js/app.js?v=20260318a"></script>
<script src="assets/js/app.js?v=20260318b"></script>
</body>
</html>