Просмотр исходного кода

Merge pull request #483 from deltachat/fix_time_label

fix vanishing time label in chat list cells with a long chat group name
bjoern 5 лет назад
Родитель
Сommit
bc45c948ac
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      deltachat-ios/View/ContactCell.swift

+ 2 - 0
deltachat-ios/View/ContactCell.swift

@@ -24,6 +24,7 @@ class ContactCell: UITableViewCell {
         label.font = UIFont.systemFont(ofSize: 16, weight: .medium)
         label.lineBreakMode = .byTruncatingTail
         label.textColor = DcColors.defaultTextColor
+        label.setContentCompressionResistancePriority(UILayoutPriority(rawValue: 1), for: NSLayoutConstraint.Axis.horizontal)
         // label.makeBorder()
         return label
 
@@ -42,6 +43,7 @@ class ContactCell: UITableViewCell {
         label.font = UIFont.systemFont(ofSize: 14)
         label.textColor = UIColor(hexString: "848ba7")
         label.textAlignment = .right
+        label.setContentCompressionResistancePriority(UILayoutPriority(rawValue: 2), for: NSLayoutConstraint.Axis.horizontal)
         // label.makeBorder()
         return label
     }()