feat/flask: fix highlight of active screenshot gallery element

This commit is contained in:
2025-08-27 10:05:29 +03:00
committed by Sweetbread
parent 5a4a306255
commit 2e8383611b
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ function updateDots() {
var dots = document.querySelectorAll("#dots .dot");
dots.forEach(function(dot, index) {
// index starts at 0 so add FIRST_IMG_ID to match your slide IDs
dot.className = "dot" + ((index + FIRST_IMG_ID) === current ? " active" : "");
dot.classList.toggle("active", (index + FIRST_IMG_ID) === current);
});
}

View File

@@ -376,7 +376,7 @@ iframe {
margin: 0 0.25em;
cursor: pointer;
.active {
&.active {
background: #333;
}
}