瀏覽代碼

add top padding to 'Show full message...' button

goal is to have roughly the same padding between
message and button as between two paragraphs.
(so that the button look more as belonging to the message
than to the last paragraph)
B. Petersen 4 年之前
父節點
當前提交
cd0235636e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

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

@@ -136,6 +136,7 @@ public class BaseMessageCell: UITableViewCell {
         button.addTarget(self, action: #selector(onFullMessageButtonTapped), for: .touchUpInside)
         button.addTarget(self, action: #selector(onFullMessageButtonTapped), for: .touchUpInside)
         button.titleLabel?.font = UIFont.preferredFont(for: .body, weight: .regular)
         button.titleLabel?.font = UIFont.preferredFont(for: .body, weight: .regular)
         button.titleLabel?.adjustsFontForContentSizeCategory = true
         button.titleLabel?.adjustsFontForContentSizeCategory = true
+        button.contentEdgeInsets = UIEdgeInsets(top: 8, left: 0, bottom: 0, right: 0)
         button.accessibilityLabel = String.localized("show_full_message")
         button.accessibilityLabel = String.localized("show_full_message")
         return button
         return button
     }()
     }()