Explorar o código

adapt image size for the avatars

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