mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-04 00:17:30 +01:00
Fix invalid images
This commit is contained in:
parent
738180665e
commit
9e1b1780c9
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user