fix: slight tweaks to opengraph card (#1128)
This commit is contained in:
parent
6bae770bf5
commit
44c45d0b64
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue