diff --git a/components/status/StatusPreviewCard.vue b/components/status/StatusPreviewCard.vue index 7aefd433..1c0403fc 100644 --- a/components/status/StatusPreviewCard.vue +++ b/components/status/StatusPreviewCard.vue @@ -5,6 +5,7 @@ const prop = defineProps<{ card: Card }>() const alt = $computed(() => `${prop.card.title} - ${prop.card.title}`) +const isSquare = $computed(() => prop.card.width === prop.card.height) // TODO: handle card.type: 'photo' | 'video' | 'rich'; @@ -16,7 +17,7 @@ const alt = $computed(() => `${prop.card.title} - ${prop.card.title}`) display-block rounded-lg > - + `${prop.card.title} - ${prop.card.title}`) :width="card.width" :height="card.height" :alt="alt" + flex flex-col display-block rounded-lg - rounded-b-none + :class="isSquare ? 'rounded-r-none w-32' : 'rounded-b-none w-full'" object-cover - w-full /> -
+

{{ card.providerName }}