From 82a657b82e61dd06aff9c5bbe2ef23b6f797d359 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 19 Jul 2023 07:53:43 +0800 Subject: [PATCH] Set aspect ratio to fit on feature card images --- .../OmnivoreKit/Sources/Views/FeedItem/LibraryFeatureCard.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/Views/FeedItem/LibraryFeatureCard.swift b/apple/OmnivoreKit/Sources/Views/FeedItem/LibraryFeatureCard.swift index 1843c2646..4c908221b 100644 --- a/apple/OmnivoreKit/Sources/Views/FeedItem/LibraryFeatureCard.swift +++ b/apple/OmnivoreKit/Sources/Views/FeedItem/LibraryFeatureCard.swift @@ -40,8 +40,8 @@ public struct LibraryFeatureCard: View { EmptyView() case let .success(image): image.resizable() + .aspectRatio(contentMode: .fit) .frame(width: 146, height: 90) - .aspectRatio(contentMode: .fill) case .failure: fallbackImage