From 1642839084f8f7cfd04d92ccdea486e35028355e Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Sat, 3 Dec 2022 14:03:53 -0500 Subject: [PATCH] Force card into large mode if it has an embed --- .../Sources/MastodonUI/View/Content/StatusCardControl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift b/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift index 3f297424c..6b6296cef 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/StatusCardControl.swift @@ -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) }