mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-03 10:47:35 +01:00
Force card into large mode if it has an embed
This commit is contained in:
parent
285fbd4247
commit
1642839084
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user