Преглед изворни кода

restrict file title to 2 lines in document preview

cyberta пре 4 година
родитељ
комит
c7ccb2e546

+ 1 - 0
deltachat-ios/Chat/Views/DocumentPreview.swift

@@ -9,6 +9,7 @@ public class DocumentPreview: DraftPreview {
         let view = FileView()
         let view = FileView()
         view.translatesAutoresizingMaskIntoConstraints = false
         view.translatesAutoresizingMaskIntoConstraints = false
         view.allowLayoutChange = false
         view.allowLayoutChange = false
+        view.fileTitle.numberOfLines = 2
         return view
         return view
     }()
     }()
 
 

+ 1 - 1
deltachat-ios/Chat/Views/FileView.swift

@@ -55,7 +55,7 @@ public class FileView: UIView {
         return stackView
         return stackView
     }()
     }()
 
 
-    private lazy var fileTitle: UILabel = {
+    lazy var fileTitle: UILabel = {
         let title = UILabel()
         let title = UILabel()
         title.font = UIFont.preferredItalicFont(for: .body)
         title.font = UIFont.preferredItalicFont(for: .body)
         title.translatesAutoresizingMaskIntoConstraints = false
         title.translatesAutoresizingMaskIntoConstraints = false