فهرست منبع

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)
         ])