add focus for the selected comparison in the list; fix light theme

This commit is contained in:
2024-12-18 01:03:24 +03:00
parent 6ad2f816df
commit 20d02c28e4
3 changed files with 17 additions and 6 deletions

View File

@@ -245,7 +245,10 @@ function buildData(table, images, data, sort, filter, exact_match) {
};
for (let tr of document.querySelectorAll("table tr")) {
tr.addEventListener("click", function() {
tr.addEventListener("click", function(event) {
this.parentElement.querySelector("tr.active")?.classList.toggle("active");
event.stopPropagation();
this.classList.toggle("active");
this.querySelector("a").click();
});
}