Fix primary/secondary border color
parent
85d777c88d
commit
54cd714b37
|
|
@ -10,9 +10,9 @@
|
||||||
const target = event.target as HTMLSpanElement
|
const target = event.target as HTMLSpanElement
|
||||||
const index = parseInt(target.getAttribute('x-index') || '0')
|
const index = parseInt(target.getAttribute('x-index') || '0')
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
primaryColorIndex = index
|
|
||||||
} else {
|
|
||||||
secondaryColorIndex = index
|
secondaryColorIndex = index
|
||||||
|
} else {
|
||||||
|
primaryColorIndex = index
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -42,10 +42,10 @@
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
.entry.primary {
|
.entry.primary {
|
||||||
border: 2px dashed black;
|
border: 2px dashed white;
|
||||||
}
|
}
|
||||||
.entry.secondary {
|
.entry.secondary {
|
||||||
border: 2px dashed white;
|
border: 2px dashed black;
|
||||||
}
|
}
|
||||||
.color {
|
.color {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue