Explorar o código

Merge pull request #978 from deltachat/tweak_top_line

show only one line for message title line, ellipsize end if necessary
cyBerta %!s(int64=4) %!d(string=hai) anos
pai
achega
854b7e7e86
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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