浏览代码

vertically center message cells, improves the UI when a cell is highlighted in the context menu

cyberta 4 年之前
父节点
当前提交
59f44b9305
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

+ 2 - 2
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -161,8 +161,8 @@ public class BaseMessageCell: UITableViewCell {
             topLabel.constraintAlignLeadingTo(messageBackgroundContainer, paddingLeading: 8),
             topLabel.constraintAlignTrailingMaxTo(messageBackgroundContainer, paddingTrailing: 8),
             bottomLabel.constraintAlignBottomTo(messageBackgroundContainer, paddingBottom: 6),
-            messageBackgroundContainer.constraintAlignTopTo(contentView, paddingTop: 6),
-            messageBackgroundContainer.constraintAlignBottomTo(contentView),
+            messageBackgroundContainer.constraintAlignTopTo(contentView, paddingTop: 3),
+            messageBackgroundContainer.constraintAlignBottomTo(contentView, paddingBottom: 3),
             bottomLabel.constraintAlignLeadingMaxTo(messageBackgroundContainer, paddingLeading: 8),
             bottomLabel.constraintAlignTrailingTo(messageBackgroundContainer, paddingTrailing: 8)
         ])