Skip to content

Commit

Permalink
fix clue highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkat committed Nov 9, 2024
1 parent 8915ecb commit 550d094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/components/CfzClue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:value="gridCells[cellId].contents"
:data-solver-mask="solverMask"
:data-is-pencil="gridCells[cellId].special == '?'"
:class="{highlighted: selected || highlighted}"
:data-highlighted="selected || highlighted"
>
</input>
<span v-if="separator(gridCells[cellId])" class="crossword-separator" v-html="separator(gridCells[cellId])"></span>
Expand Down Expand Up @@ -132,7 +132,7 @@
@include each-solver using ($color, $lightColor, $sel) {
input.highlighted#{$sel} {
input[data-highlighted]#{$sel} {
padding-bottom: 0px;
border-bottom: 2px solid $color;
}
Expand Down Expand Up @@ -242,7 +242,7 @@ export default Vue.extend({
return contents;
},
highlighted() {
return this.clue.highlightMask & this.solverMask;
return !!(this.clue.highlightMask & this.solverMask);
},
selected() {
return this.clue.selected;
Expand Down

0 comments on commit 550d094

Please sign in to comment.