Force card into large mode if it has an embed

This commit is contained in:
Jed Fox 2022-12-03 14:03:53 -05:00
parent 285fbd4247
commit 1642839084
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ private extension Card {
if !aspectRatio.isFinite { if !aspectRatio.isFinite {
aspectRatio = 1 aspectRatio = 1
} }
return abs(aspectRatio - 1) < 0.05 || image == nil return (abs(aspectRatio - 1) < 0.05 || image == nil) && html == nil
? .compact ? .compact
: .large(aspectRatio: aspectRatio) : .large(aspectRatio: aspectRatio)
} }