fix: fix issue on preview card size detection (#3488)
This commit is contained in:
parent
b444e29387
commit
01e147eea9
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ const ogImageWidth = 400
|
|||
const alt = computed(() => `${card.title} - ${card.title}`)
|
||||
const isSquare = computed(() => (
|
||||
smallPictureOnly
|
||||
|| !card.image
|
||||
|| card.width === card.height
|
||||
|| Number(card.width || 0) < ogImageWidth
|
||||
|| Number(card.height || 0) < ogImageWidth / 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue