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

Fixed a bug where the quote preview width could be too small
This commit is contained in:
Morgan Pretty 2023-09-08 10:28:21 +10:00 committed by GitHub
commit 5bdfd0e93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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