parent
385f31728d
commit
50bfaf7236
|
@ -101,7 +101,8 @@ class AttachmentsContainerView: UIView {
|
|||
accessibilityElements.append(attachmentView)
|
||||
if Preferences.shared.showUncroppedMediaInline,
|
||||
let attachmentAspectRatio = attachmentView.attachmentAspectRatio {
|
||||
aspectRatio = attachmentAspectRatio
|
||||
// clamp to prevent excessively short/tall attachments
|
||||
aspectRatio = max(min(attachmentAspectRatio, 2/1), 1/2)
|
||||
}
|
||||
case 2:
|
||||
let left = createAttachmentView(index: 0, hSize: .half, vSize: .full)
|
||||
|
|
Loading…
Reference in New Issue