Open source CapCut alternative.
TypeScript
fix(ios): landscape posters fit the library tile
David Le0b0f2c14924e
diff --git a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/MediaScreen.swift b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/MediaScreen.swiftindex 62a4891b..6b989546 100644--- a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/MediaScreen.swift+++ b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/MediaScreen.swift@@ -226,7 +226,10 @@ struct RecordingCard: View {let image = UIImage(contentsOfFile: url.localPath) {Image(uiImage: image).resizable()- .scaledToFill()+ // A take shot sideways shows its whole frame: cropping a+ // landscape poster to a portrait tile leaves a sliver of+ // the middle.+ .aspectRatio(contentMode: image.size.width > image.size.height ? .fit : .fill)} else {Image(systemName: "play.fill").foregroundStyle(.secondary)