浏览代码

prevent subtitle from being cut off due to a smaller chat main title

cyberta 2 年之前
父节点
当前提交
5dd1f408a3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      deltachat-ios/View/ChatTitleView.swift

+ 1 - 0
deltachat-ios/View/ChatTitleView.swift

@@ -37,6 +37,7 @@ class ChatTitleView: UIView {
         subtitleLabel.translatesAutoresizingMaskIntoConstraints = false
         subtitleLabel.font = UIFont.systemFont(ofSize: 12)
         subtitleLabel.textAlignment = .center
+        subtitleLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
         return subtitleLabel
     }()