瀏覽代碼

add some addtitional padding top/bottom of status

in comparison to most other cells in the contact-profile,
the status contains lots of text, resulting in some "blackness";
the additional whitespace makes that look more homogeneous
and less stocky.
B. Petersen 4 年之前
父節點
當前提交
2ff485840f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      deltachat-ios/View/MultilineLabelCell.swift

+ 3 - 3
deltachat-ios/View/MultilineLabelCell.swift

@@ -37,10 +37,10 @@ class MultilineLabelCell: UITableViewCell {
         contentView.addSubview(label)
 
         let margins = contentView.layoutMarginsGuide
-        label.alignLeadingToAnchor(margins.leadingAnchor, paddingLeading: 0)
+        label.alignLeadingToAnchor(margins.leadingAnchor)
         label.alignTrailingToAnchor(margins.trailingAnchor)
-        label.alignTopToAnchor(margins.topAnchor)
-        label.alignBottomToAnchor(margins.bottomAnchor)
+        label.alignTopToAnchor(margins.topAnchor, paddingTop: 10)
+        label.alignBottomToAnchor(margins.bottomAnchor, paddingBottom: 10)
 
         let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(handleTapGesture(_:)))
         gestureRecognizer.numberOfTapsRequired = 1