Quellcode durchsuchen

fix jumping of mute/pin icons in chat list cells

cyberta vor 5 Jahren
Ursprung
Commit
fad7fc35b9
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      deltachat-ios/View/ContactCell.swift

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

@@ -72,7 +72,8 @@ class ContactCell: UITableViewCell {
         label.font = UIFont.systemFont(ofSize: 14)
         label.textColor = DcColors.middleGray
         label.textAlignment = .right
-        label.setContentCompressionResistancePriority(UILayoutPriority(rawValue: 2), for: NSLayoutConstraint.Axis.horizontal)
+        label.setContentHuggingPriority(.defaultHigh, for: NSLayoutConstraint.Axis.horizontal)
+        label.setContentCompressionResistancePriority(UILayoutPriority(rawValue: 10), for: NSLayoutConstraint.Axis.horizontal)
         return label
     }()