Fix invalid images

This commit is contained in:
Thomas Ricouard 2024-01-08 12:19:25 +01:00
parent 738180665e
commit 9e1b1780c9

View file

@ -243,6 +243,10 @@ private struct FeaturedImagePreView: View {
let height = media.meta?.original?.height
else { return nil }
guard width != 1 && height != 1 else {
return .init(width: 800, height: 600)
}
return .init(width: CGFloat(width), height: CGFloat(height))
}