Skip to content

Commit

Permalink
Add gray out state for SkillTreeNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauritz-Tieste committed Nov 13, 2024
1 parent 39ba699 commit 7347344
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/skill-tree/Node.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<svg :x="cx" :y="cy" ref="nodeRef" @click="ondblclick">
<svg :x="cx" :y="cy" ref="nodeRef" @click="ondblclick" class="duration-300" :class="isNotInSearch ? 'opacity-35' : ''">
<SkillTreeNodeSvg
v-if="isFilled"
:size="nodeSize"
Expand Down Expand Up @@ -49,6 +49,7 @@ export default defineComponent({
zoomLevel: { type: Number, default: 2 },
viewSubtree: { type: Boolean, default: false },
viewSkill: { type: Boolean, default: false },
isNotInSearch: { type: Boolean, default: false },
},
emits: ['node', 'size', 'selected', 'move', 'ref'],
setup(props, { emit }) {
Expand Down Expand Up @@ -139,5 +140,3 @@ export default defineComponent({
},
});
</script>

<style scoped></style>

0 comments on commit 7347344

Please sign in to comment.