瀏覽代碼

fix: 修复 IM 页面顶部信息展示异常的问题

陈文艺 2 月之前
父節點
當前提交
6b45376ae4
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      Lanu/Common/Views/Base/LNViewController.swift
  2. 2 0
      Lanu/Views/IM/Chat/LNIMChatViewController.swift

+ 1 - 1
Lanu/Common/Views/Base/LNViewController.swift

@@ -48,7 +48,7 @@ class LNViewController: UIViewController {
             }
         }), for: .touchUpInside)
         backButton.snp.makeConstraints { make in
-            make.width.height.equalTo(44)
+            make.width.height.equalTo(24)
         }
         navigationItem.leftBarButtonItem = UIBarButtonItem(customView: backButton)
         

+ 2 - 0
Lanu/Views/IM/Chat/LNIMChatViewController.swift

@@ -329,6 +329,8 @@ extension LNIMChatViewController {
         
         unreadLabel.textColor = .text_6
         unreadLabel.font = .body_l
+        unreadLabel.setContentHuggingPriority(.required, for: .horizontal)
+        unreadLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
         infoStackView.addArrangedSubview(unreadLabel)
         
         avatar.layer.cornerRadius = 17