Commit c662952e by Demid Merzlyakov

TodayAlertCell: fix layout issue.

parent 3b591898
......@@ -133,6 +133,7 @@ private extension TodayAlertCell {
infoLabel.lineBreakMode = .byWordWrapping
infoLabel.font = AppFont.SFPro.regular(size: 16)
infoLabel.text = ""// E.g. "Frost Advisory and 2 more alerts"
infoLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
container.addSubview(infoLabel)
timeAgoLabel.font = AppFont.SFPro.regular(size: 14)
......@@ -156,7 +157,8 @@ private extension TodayAlertCell {
make.left.equalTo(alertImageView.snp.right).offset(18)
make.top.equalToSuperview().inset(12)
make.bottom.equalToSuperview().inset(12)
make.right.equalTo(timeAgoLabel.snp.left).offset(-18)
make.right.lessThanOrEqualTo(moreLabel.snp.left).offset(-8)
make.right.lessThanOrEqualTo(timeAgoLabel.snp.left).offset(-8)
}
moreLabel.snp.makeConstraints { (make) in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment