Reduce the width of URL previews on 4" devices.

This commit is contained in:
Doug
2021-09-16 16:41:21 +01:00
parent eb9658c5f2
commit 63d822b026
8 changed files with 40 additions and 18 deletions
@@ -388,6 +388,8 @@ const CGFloat kTypingCellHeight = 24;
[bubbleCell.tmpSubviews addObject:urlPreviewView];
urlPreviewView.translatesAutoresizingMaskIntoConstraints = NO;
// TODO: Use cellData.maxTextViewWidth when the view height is part of RoomBubbleCellData's additional height.
urlPreviewView.availableWidth = tableView.contentSize.width;
[bubbleCell.contentView addSubview:urlPreviewView];
CGFloat leftMargin = RoomBubbleCellLayout.reactionsViewLeftMargin;