Browse Source

字号设置

jsonwang 3 năm trước cách đây
mục cha
commit
87d9fb61fa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      BFFramework/Classes/PModels/PQVideoListModel.swift

+ 1 - 1
BFFramework/Classes/PModels/PQVideoListModel.swift

@@ -271,7 +271,7 @@ public class PQVideoListModel: PQBaseModel {
         itemHeight = (cScreenWidth - cDefaultMargin * 3) / 2 * originImageH / originImageW + tempTitleH + cDefaultMargin * 4.5
 
         if title != nil, (title?.count ?? 0) > 0 {
-            titleH = sizeWithText(text: title ?? "", font: UIFont.systemFont(ofSize: 26, weight: .medium), size: CGSize(width: cScreenWidth - cDefaultMargin * 2, height: CGFloat.greatestFiniteMagnitude)).height + cDefaultMargin
+            titleH = sizeWithText(text: title ?? "", font: UIFont.systemFont(ofSize: 16, weight: .bold), size: CGSize(width: cScreenWidth - cDefaultMargin * 2, height: CGFloat.greatestFiniteMagnitude)).height + cDefaultMargin
         }
         if titleH > 70 {
             titleH = 70