Ver código fonte

fix vanishing time label in chat list cells with a long chat group name (#455)

cyberta 5 anos atrás
pai
commit
9c7c1c5028
1 arquivos alterados com 2 adições e 0 exclusões
  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
     }()