Ver Fonte

show only one line for message title line, ellipsize end if necessary

cyberta há 4 anos atrás
pai
commit
3e0e1588e4
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

+ 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