diff --git a/src/views/snapshot/OverlapCard.vue b/src/views/snapshot/OverlapCard.vue index affcd37..e9e2a92 100644 --- a/src/views/snapshot/OverlapCard.vue +++ b/src/views/snapshot/OverlapCard.vue @@ -38,7 +38,9 @@ const left = _1vw * 25.5; :key="resultNode.id" @click="snapshotStore.updateFocusNode(resultNode)" size="small" - :class="{ 'color-[#00F]': resultNode === focusNode }" + :style="{ + color: resultNode === focusNode ? '#00F' : undefined, + }" > {{ getNodeLabel(resultNode) }} diff --git a/src/views/snapshot/RuleCard.vue b/src/views/snapshot/RuleCard.vue index 316809a..bd2363d 100644 --- a/src/views/snapshot/RuleCard.vue +++ b/src/views/snapshot/RuleCard.vue @@ -184,8 +184,8 @@ const targetNode = computed(() => { v-else-if="targetNode" @click="snapshotStore.updateFocusNode(targetNode)" size="small" - :class="{ - 'color-[#00F]': targetNode === focusNode, + :style="{ + color: targetNode === focusNode ? '#00F' : undefined, }" > {{ getNodeLabel(targetNode) }} diff --git a/src/views/snapshot/SearchCard.vue b/src/views/snapshot/SearchCard.vue index 7c8e7e3..98d9297 100644 --- a/src/views/snapshot/SearchCard.vue +++ b/src/views/snapshot/SearchCard.vue @@ -371,7 +371,9 @@ const shareResult = (result: SearchResult) => { :key="resultNode.id" @click="updateFocusNode(resultNode)" size="small" - :class="{ 'color-[#00F]': resultNode === focusNode }" + :style="{ + color: resultNode === focusNode ? '#00F' : undefined, + }" > {{ getNodeLabel(resultNode) }} @@ -406,9 +408,11 @@ const shareResult = (result: SearchResult) => { updateFocusNode(trackNodes[result.selector.targetIndex]) " size="small" - :class="{ - 'color-[#00F]': - trackNodes[result.selector.targetIndex] === focusNode, + :style="{ + color: + trackNodes[result.selector.targetIndex] === focusNode + ? '#00F' + : undefined, }" > {{ getNodeLabel(trackNodes[result.selector.targetIndex]) }}