From 0d91a8da64860c41abc2e4e7367e96c06632e503 Mon Sep 17 00:00:00 2001 From: Brian Litwin Date: Sun, 21 Oct 2018 17:24:50 -0400 Subject: [PATCH] Update reivewGitHUbAccessBtn constraints --- Classes/Notifications/NoNewNotificationsCell.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/Notifications/NoNewNotificationsCell.swift b/Classes/Notifications/NoNewNotificationsCell.swift index 402ea51c4..b7c17f7d5 100644 --- a/Classes/Notifications/NoNewNotificationsCell.swift +++ b/Classes/Notifications/NoNewNotificationsCell.swift @@ -46,6 +46,7 @@ final class NoNewNotificationsCell: UICollectionViewCell { messageLabel.snp.makeConstraints { make in make.centerX.equalTo(emojiLabel) make.top.equalTo(emojiLabel.snp.bottom).offset(Styles.Sizes.tableSectionSpacing) + make.height.greaterThanOrEqualTo(messageLabel.font.pointSize) } resetAnimations() @@ -77,7 +78,9 @@ final class NoNewNotificationsCell: UICollectionViewCell { make.centerX.equalTo(messageLabel) make.width.equalTo(buttonWidth) make.height.equalTo(buttonHeight) - make.bottom.equalTo(contentView.snp.bottom).offset(-Styles.Sizes.tableSectionSpacing) + make.top.greaterThanOrEqualTo(messageLabel.snp.bottom) + make.bottom.equalTo(contentView.snp.bottom).offset(-Styles.Sizes.tableSectionSpacing).priority(.low) + make.bottom.lessThanOrEqualTo(contentView.snp.bottom) } }