From 2350d1085ad5d66aedb57d3f03cc95ede1c1de16 Mon Sep 17 00:00:00 2001 From: orlinmalkja Date: Thu, 7 Nov 2024 15:58:53 +0100 Subject: [PATCH 1/2] fix: truncate and add ellipses for long witnesses --- src/components/annotations/variants/VariantItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/annotations/variants/VariantItem.vue b/src/components/annotations/variants/VariantItem.vue index ce817282..b295f17f 100644 --- a/src/components/annotations/variants/VariantItem.vue +++ b/src/components/annotations/variants/VariantItem.vue @@ -8,9 +8,9 @@ :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,