Pārlūkot izejas kodu

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

cyberta 5 gadi atpakaļ
vecāks
revīzija
19c1fbc6d1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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.numberOfLines = 1
             value.textAlignment = .right
             value.textAlignment = .right
             stackView.axis = .horizontal
             stackView.axis = .horizontal
-            stackView.spacing = 10
+            stackView.spacing = (value.text?.count ?? 0) == 0 ? 0 : 10
 
 
         } else {
         } else {
             title.numberOfLines = 0
             title.numberOfLines = 0