Эх сурвалжийг харах

Merge pull request #1035 from deltachat/vertically_center_cells

vertically center message cells
bjoern 4 жил өмнө
parent
commit
1ce40ba628

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