mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Respond to CR.
This commit is contained in:
parent
bcde04766f
commit
f0121f20b4
|
@ -349,7 +349,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
if (self.isQuotedReply) {
|
||||
UIView *spacerView = [UIView containerView];
|
||||
[spacerView autoSetDimension:ALDimensionHeight toSize:self.bodyMedaQuotedReplyVSpacing];
|
||||
[spacerView autoSetDimension:ALDimensionHeight toSize:self.bodyMediaQuotedReplyVSpacing];
|
||||
[spacerView setCompressionResistanceHigh];
|
||||
[self.stackView addArrangedSubview:spacerView];
|
||||
}
|
||||
|
@ -606,7 +606,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return 2.f;
|
||||
}
|
||||
|
||||
- (CGFloat)bodyMedaQuotedReplyVSpacing
|
||||
- (CGFloat)bodyMediaQuotedReplyVSpacing
|
||||
{
|
||||
return 8.f;
|
||||
}
|
||||
|
@ -1176,7 +1176,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
}
|
||||
|
||||
if (bodyMediaSize && quotedMessageSize && self.hasFullWidthMediaView) {
|
||||
cellSize.height += self.bodyMedaQuotedReplyVSpacing;
|
||||
cellSize.height += self.bodyMediaQuotedReplyVSpacing;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -264,6 +264,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[quotedAttachmentView setCompressionResistanceHigh];
|
||||
[hStackView addArrangedSubview:quotedAttachmentView];
|
||||
} else {
|
||||
// If there's no attachment, add an empty view so that
|
||||
// the stack view's spacing serves as a margin between
|
||||
// the text views and the trailing edge.
|
||||
UIView *emptyView = [UIView containerView];
|
||||
[hStackView addArrangedSubview:emptyView];
|
||||
[emptyView setContentHuggingHigh];
|
||||
|
|
Loading…
Reference in a new issue