diff --git a/components/status/StatusPreviewCard.vue b/components/status/StatusPreviewCard.vue index 1c0403fc..f271f89f 100644 --- a/components/status/StatusPreviewCard.vue +++ b/components/status/StatusPreviewCard.vue @@ -6,6 +6,7 @@ const prop = defineProps<{ }>() const alt = $computed(() => `${prop.card.title} - ${prop.card.title}`) const isSquare = $computed(() => prop.card.width === prop.card.height) +const description = $computed(() => prop.card.description ? prop.card.description : new URL(prop.card.url).hostname) // TODO: handle card.type: 'photo' | 'video' | 'rich'; @@ -39,11 +40,8 @@ const isSquare = $computed(() => prop.card.width === prop.card.height) {{ card.providerName }}

{{ card.title }} -

- {{ card.description }} -

-

- {{ card.url }} +

+ {{ description }}