fix: fix issue on preview card size detection (#3488)

This commit is contained in:
TAKAHASHI Shuuji 2025-12-29 22:00:50 +09:00 committed by GitHub
parent b444e29387
commit 01e147eea9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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