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
1 changed files with 6 additions and 6 deletions

View File

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