Przeglądaj źródła

Merge pull request #978 from deltachat/tweak_top_line

show only one line for message title line, ellipsize end if necessary
cyBerta 4 lat temu
rodzic
commit
854b7e7e86

+ 2 - 0
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -95,6 +95,8 @@ public class BaseMessageCell: UITableViewCell {
         view.translatesAutoresizingMaskIntoConstraints = false
         view.font = UIFont.preferredFont(for: .caption1, weight: .bold)
         view.layer.cornerRadius = 4
+        view.numberOfLines = 1
+        view.label.lineBreakMode = .byTruncatingTail
         view.clipsToBounds = true
         view.paddingLeading = 4
         view.paddingTrailing = 4