From 55a840cdebb1ca70656ba343ab946686a39f6cd0 Mon Sep 17 00:00:00 2001 From: orlinmalkja <54899269+orlinmalkja@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:35:50 +0100 Subject: [PATCH] fix: truncate and add ellipses for long witnesses (#520) * fix: truncate and add ellipses for long witnesses * fix: view the full witness name on hover --------- Co-authored-by: orlinmalkja --- src/components/annotations/variants/VariantItem.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/annotations/variants/VariantItem.vue b/src/components/annotations/variants/VariantItem.vue index ce817282..afe7470e 100644 --- a/src/components/annotations/variants/VariantItem.vue +++ b/src/components/annotations/variants/VariantItem.vue @@ -8,13 +8,14 @@ :data-annotation-id="annotation.id" @click="handleClick" > -
+
{{ witness ?? '-' }}
@@ -33,7 +34,7 @@ import { computed } from 'vue'; import colors from "tailwindcss/colors"; const entry = computed(() => props.annotation.body.value.entry) -const witness = computed(() => props.annotation.body.value.witness) +const witness= computed(() => props.annotation.body.value.witness) export interface Props { annotation: Annotation,