Explorar o código

add minimal left padding to avatars in chat messages, so that they're not touching the left screen boarder and are horizontally centered between screen boarder and message bubble

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
02f56733ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

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

@@ -160,7 +160,7 @@ public class BaseMessageCell: UITableViewCell {
         contentView.addSubview(avatarView)
 
         contentView.addConstraints([
-            avatarView.constraintAlignLeadingTo(contentView),
+            avatarView.constraintAlignLeadingTo(contentView, paddingLeading: 2),
             avatarView.constraintAlignBottomTo(contentView),
             avatarView.constraintWidthTo(28, priority: .defaultHigh),
             avatarView.constraintHeightTo(28, priority: .defaultHigh),