mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix quoted reply image aspect ratio.
This commit is contained in:
parent
75e017b2c1
commit
5830c62403
|
@ -219,6 +219,8 @@ const CGFloat kRemotelySourcedContentRowSpacing = 3;
|
|||
vStackView.layoutMargins = UIEdgeInsetsMake(self.textVMargin, 0, self.textVMargin, 0);
|
||||
vStackView.layoutMarginsRelativeArrangement = YES;
|
||||
vStackView.spacing = self.vSpacing;
|
||||
[vStackView setContentHuggingHorizontalLow];
|
||||
[vStackView setCompressionResistanceHorizontalLow];
|
||||
[hStackView addArrangedSubview:vStackView];
|
||||
|
||||
UILabel *quotedAuthorLabel = [self configureQuotedAuthorLabel];
|
||||
|
@ -280,7 +282,7 @@ const CGFloat kRemotelySourcedContentRowSpacing = 3;
|
|||
quotedAttachmentView = wrapper;
|
||||
}
|
||||
|
||||
[quotedAttachmentView autoSetDimension:ALDimensionWidth toSize:self.quotedAttachmentSize];
|
||||
[quotedAttachmentView autoPinToSquareAspectRatio];
|
||||
[quotedAttachmentView setContentHuggingHigh];
|
||||
[quotedAttachmentView setCompressionResistanceHigh];
|
||||
[hStackView addArrangedSubview:quotedAttachmentView];
|
||||
|
|
Loading…
Reference in a new issue