Merge pull request #898 from mpretty-cyro/fix/quote-preview-x-alignment

Fixed a bug where the quote preview width could be too small
pull/901/head
Morgan Pretty 2 years ago committed by GitHub
commit 5bdfd0e93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -119,8 +119,7 @@ final class QuoteView: UIView {
// Content view // Content view
let contentView = UIView() let contentView = UIView()
addSubview(contentView) addSubview(contentView)
contentView.pin([ UIView.HorizontalEdge.left, UIView.VerticalEdge.top, UIView.VerticalEdge.bottom ], to: self) contentView.pin(to: self)
contentView.rightAnchor.constraint(lessThanOrEqualTo: self.rightAnchor).isActive = true
if let attachment: Attachment = attachment { if let attachment: Attachment = attachment {
let isAudio: Bool = MIMETypeUtil.isAudio(attachment.contentType) let isAudio: Bool = MIMETypeUtil.isAudio(attachment.contentType)

Loading…
Cancel
Save