Browse Source

increase visible space of a BasicCell title if no value is assigned to the cell

cyberta 5 năm trước cách đây
mục cha
commit
19c1fbc6d1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      deltachat-ios/View/BasicCell.swift

+ 1 - 1
deltachat-ios/View/BasicCell.swift

@@ -82,7 +82,7 @@ class BasicCell: UITableViewCell {
             value.numberOfLines = 1
             value.textAlignment = .right
             stackView.axis = .horizontal
-            stackView.spacing = 10
+            stackView.spacing = (value.text?.count ?? 0) == 0 ? 0 : 10
 
         } else {
             title.numberOfLines = 0