diff --git a/src/components/NodeMap.vue b/src/components/NodeMap.vue
index c8b93c0..db46abe 100644
--- a/src/components/NodeMap.vue
+++ b/src/components/NodeMap.vue
@@ -20,7 +20,7 @@
:cx="node.x"
:cy="node.y"
class="svg-dot-btn"
- :class="['svg-dot-btn-' + node.data.variant, { 'origin': node.data.isOrigin }]"
+ :class="['svg-dot-btn-' + node.data.variant, { 'origin': node.parent === null }]"
tabindex="0"
@click="onNodeClick(node.data)"
@keyup.enter="onNodeClick(node.data)"
@@ -45,11 +45,11 @@
@mouseleave="activeNode = null"
>
- {{ activeNode.data.families[0].name }}
+ {{ $t('variants.' + activeNode.data.variant) }}
{{ toCommaList(activeNode.data.authors) }},
-
-
+
+
diff --git a/src/components/text/TextCard.vue b/src/components/text/TextCard.vue
index 452d8d5..dc593f2 100644
--- a/src/components/text/TextCard.vue
+++ b/src/components/text/TextCard.vue
@@ -9,7 +9,7 @@
@click="onChildOpen($event, text.id, child.id)"
:active="children.includes(child.id)" :variant="child.variant"
>
- {{ child.families[0].name }}
+ {{ $t('variants.' + child.variant) }}
diff --git a/src/components/text/TextCardBase.vue b/src/components/text/TextCardBase.vue
index 88a3ab3..65df763 100644
--- a/src/components/text/TextCardBase.vue
+++ b/src/components/text/TextCardBase.vue
@@ -15,7 +15,7 @@
- {{ text.families[0].name }}
+ {{ $t('variants.' + text.variant) }}