Переглянути джерело

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

cyberta 5 роки тому
батько
коміт
19c1fbc6d1
1 змінених файлів з 1 додано та 1 видалено
  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