فهرست منبع

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) {
     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()
             let attachment = NSTextAttachment()
             attachment.image = resizedImg
             attachment.image = resizedImg
             initialsLabel.attributedText = NSAttributedString(attachment: attachment)
             initialsLabel.attributedText = NSAttributedString(attachment: attachment)