fix: slight tweaks to opengraph card (#1128)

This commit is contained in:
Nolan Lawson 2019-03-31 14:11:24 -07:00 committed by GitHub
parent 6bae770bf5
commit 44c45d0b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,8 +50,7 @@
}
.card-title {
font-weight: 500;
font-weight: 600;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@ -81,10 +80,11 @@
LazyImage
},
computed: {
title: ({ originalStatus }) => originalStatus.card.title,
url: ({ originalStatus }) => originalStatus.card.url,
description: ({ originalStatus }) => originalStatus.card.description,
imageUrl: ({ originalStatus }) => originalStatus.card.image,
card: ({ originalStatus }) => originalStatus.card,
title: ({ card }) => card.title,
url: ({ card }) => card.url,
description: ({ card }) => card.description || card.provider_name,
imageUrl: ({ card }) => card.image,
hasBody: ({ description, imageUrl }) => description && imageUrl
}
}