浏览代码

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