Browse Source

Merge pull request #978 from deltachat/tweak_top_line

show only one line for message title line, ellipsize end if necessary
cyBerta 4 năm trước cách đây
mục cha
commit
854b7e7e86
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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