Fixed a bug where the quote preview width could be too small

This commit is contained in:
Morgan Pretty 2023-09-07 17:39:46 +10:00
parent 45bee6fdf9
commit 260e9b0a43
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)