Browse Source

adapt image size for the avatars

cyberta 5 years ago
parent
commit
0f6d10d378
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deltachat-ios/View/ContactCell.swift

+ 1 - 1
deltachat-ios/View/ContactCell.swift

@@ -165,7 +165,7 @@ class ContactCell: UITableViewCell {
     }
 
     func setImage(_ img: UIImage) {
-        if let resizedImg = img.resizeImage(targetSize: CGSize(width: initialsLabelSize, height: initialsLabelSize)) {
+        if let resizedImg = img.resizeImage(targetSize: CGSize(width: initialsLabelSize - 6, height: initialsLabelSize - 6)) {
             let attachment = NSTextAttachment()
             attachment.image = resizedImg
             initialsLabel.attributedText = NSAttributedString(attachment: attachment)