1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-02-03 02:37:37 +01:00

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

View File

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