Explorar o código

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

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
59f44b9305
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)
         ])