Fix clipping

pull/141/head
gmbnt 5 years ago
parent 813787faaa
commit 56ae1e4a5c

@ -103,13 +103,13 @@ final class ConversationCell : UITableViewCell {
unreadMessagesIndicatorView.pin(.bottom, to: .bottom, of: contentView) unreadMessagesIndicatorView.pin(.bottom, to: .bottom, of: contentView)
// The three lines below are part of a workaround for a weird layout bug // The three lines below are part of a workaround for a weird layout bug
topLabelStackView.set(.width, to: UIScreen.main.bounds.width - Values.accentLineThickness - Values.mediumSpacing - profilePictureViewSize - Values.mediumSpacing - Values.mediumSpacing) topLabelStackView.set(.width, to: UIScreen.main.bounds.width - Values.accentLineThickness - Values.mediumSpacing - profilePictureViewSize - Values.mediumSpacing - Values.mediumSpacing)
topLabelStackView.set(.height, to: 18) topLabelStackView.set(.height, to: 20)
topLabelSpacer.set(.height, to: 18) topLabelSpacer.set(.height, to: 20)
timestampLabel.setContentCompressionResistancePriority(.required, for: NSLayoutConstraint.Axis.horizontal) timestampLabel.setContentCompressionResistancePriority(.required, for: NSLayoutConstraint.Axis.horizontal)
// The three lines below are part of a workaround for a weird layout bug // The three lines below are part of a workaround for a weird layout bug
bottomLabelStackView.set(.width, to: UIScreen.main.bounds.width - Values.accentLineThickness - Values.mediumSpacing - profilePictureViewSize - Values.mediumSpacing - Values.mediumSpacing) bottomLabelStackView.set(.width, to: UIScreen.main.bounds.width - Values.accentLineThickness - Values.mediumSpacing - profilePictureViewSize - Values.mediumSpacing - Values.mediumSpacing)
bottomLabelStackView.set(.height, to: 16) bottomLabelStackView.set(.height, to: 18)
bottomLabelSpacer.set(.height, to: 16) bottomLabelSpacer.set(.height, to: 18)
statusIndicatorView.set(.width, to: Values.conversationCellStatusIndicatorSize) statusIndicatorView.set(.width, to: Values.conversationCellStatusIndicatorSize)
statusIndicatorView.set(.height, to: Values.conversationCellStatusIndicatorSize) statusIndicatorView.set(.height, to: Values.conversationCellStatusIndicatorSize)
snippetLabel.pin(to: snippetLabelContainer) snippetLabel.pin(to: snippetLabelContainer)

@ -25,7 +25,7 @@ final class ConversationTitleView : UIView {
private lazy var subtitleLabel: UILabel = { private lazy var subtitleLabel: UILabel = {
let result = UILabel() let result = UILabel()
result.textColor = Colors.text result.textColor = Colors.text
result.font = .systemFont(ofSize: Values.smallFontSize) result.font = .systemFont(ofSize: 13)
result.lineBreakMode = .byTruncatingTail result.lineBreakMode = .byTruncatingTail
return result return result
}() }()

Loading…
Cancel
Save