fix(web): disable click on inactive lines

This commit is contained in:
2026-08-21 21:23:57 +02:00
parent b36cdbb0dc
commit 6ddffce672
+3
View File
@@ -70,6 +70,9 @@
class:bg-yellow-600={colors[i] === Color.YELLOW} class:bg-yellow-600={colors[i] === Color.YELLOW}
class:bg-grey-600={colors[i] === Color.GREY} class:bg-grey-600={colors[i] === Color.GREY}
onclick={() => { onclick={() => {
if (!active) {
return;
}
if (cursor === i) { if (cursor === i) {
colors[cursor] = (colors[cursor] + 1) % 3; colors[cursor] = (colors[cursor] + 1) % 3;
} else { } else {