From 622e90b6524fc8a10631651087779944ac59cb69 Mon Sep 17 00:00:00 2001 From: Arne de Laat Date: Tue, 26 Dec 2023 09:34:13 +0100 Subject: [PATCH] Fix removal of current class to only affect thumbnails --- theme_153957/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme_153957/templates/base.html b/theme_153957/templates/base.html index 151b9e6..07b73d8 100644 --- a/theme_153957/templates/base.html +++ b/theme_153957/templates/base.html @@ -101,7 +101,7 @@ function highlightThumbnail() { // Highlight the thumbnail corresponding to the displayed image - const current = document.querySelector('.current') + const current = document.getElementById('thumbnails').querySelector('.current') current?.classList.remove('current') const next = document.querySelector(`[data-id="${window.location.hash.slice(1)}"]`) next?.classList.add('current')