Attachment menu improvements

This commit is contained in:
Ilya Laktyushin
2022-02-22 01:39:12 +03:00
parent 33f503c41e
commit ac543cb093
6 changed files with 354 additions and 324 deletions

View File

@@ -98,7 +98,7 @@ final class AttachmentContainer: ASDisplayNode, UIGestureRecognizerDelegate {
return 210.0
}
if case .compact = layout.metrics.widthClass {
return min(layout.size.width, layout.size.height) * 0.2488
return max(layout.size.width, layout.size.height) * 0.2488
} else {
return 210.0
}