浏览代码

Merge pull request #978 from deltachat/tweak_top_line

show only one line for message title line, ellipsize end if necessary
cyBerta 4 年之前
父节点
当前提交
854b7e7e86
共有 1 个文件被更改,包括 2 次插入0 次删除
  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