浏览代码

adapt image size for the avatars

cyberta 5 年之前
父节点
当前提交
0f6d10d378
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)