Browse Source

reduce the max height for displayed imaged in chats a little bit

cyberta 5 years ago
parent
commit
8753c27a08

+ 1 - 1
deltachat-ios/MessageKit/Layout/MediaMessageSizeCalculator.swift

@@ -28,7 +28,7 @@ import UIKit
 open class MediaMessageSizeCalculator: MessageSizeCalculator {
 
     private var maxMediaItemHeight: CGFloat {
-        return UIScreen.main.bounds.size.height * 0.8
+        return UIScreen.main.bounds.size.height * 0.7
     }
 
     open override func messageContainerSize(for message: MessageType) -> CGSize {

+ 1 - 1
deltachat-ios/MessageKit/Layout/TextMediaMessageSizeCalculator.swift

@@ -28,7 +28,7 @@ import UIKit
 open class TextMediaMessageSizeCalculator: MessageSizeCalculator {
 
     private var maxMediaItemHeight: CGFloat {
-        return UIScreen.main.bounds.size.height * 0.8
+        return UIScreen.main.bounds.size.height * 0.7
     }
 
     private let minTextWidth: CGFloat = 180