diff --git a/Yep/Configs/YepConfig.swift b/Yep/Configs/YepConfig.swift index 87ef69c4..2db5c34d 100644 --- a/Yep/Configs/YepConfig.swift +++ b/Yep/Configs/YepConfig.swift @@ -119,6 +119,8 @@ class YepConfig { static let mediaMinWidth: CGFloat = 60 static let mediaMinHeight: CGFloat = 30 + + static let centerXOffset: CGFloat = 4 } struct MetaData { diff --git a/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.swift b/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.swift index a5113fce..89dfe381 100644 --- a/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.swift +++ b/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.swift @@ -17,6 +17,7 @@ class ChatLeftImageCell: UICollectionViewCell { @IBOutlet weak var messageImageViewWidthConstrint: NSLayoutConstraint! @IBOutlet weak var loadingProgressView: MessageLoadingProgressView! + @IBOutlet weak var loadingProgressViewCenterXConstraint: NSLayoutConstraint! typealias MediaTapAction = () -> Void var mediaTapAction: MediaTapAction? @@ -25,6 +26,7 @@ class ChatLeftImageCell: UICollectionViewCell { super.awakeFromNib() avatarImageViewWidthConstraint.constant = YepConfig.chatCellAvatarSize() + loadingProgressViewCenterXConstraint.constant = YepConfig.ChatCell.centerXOffset messageImageView.tintColor = UIColor.leftBubbleTintColor() diff --git a/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.xib b/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.xib index 3a60ca8e..03040bc5 100644 --- a/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.xib +++ b/Yep/Views/Cells/ChatLeftImage/ChatLeftImageCell.xib @@ -56,6 +56,7 @@ + diff --git a/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift b/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift index 860e09d8..f2ee5abe 100644 --- a/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift +++ b/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.swift @@ -17,6 +17,7 @@ class ChatLeftVideoCell: UICollectionViewCell { @IBOutlet weak var thumbnailImageViewWidthConstraint: NSLayoutConstraint! @IBOutlet weak var playImageView: UIImageView! + @IBOutlet weak var playImageViewCenterXConstraint: NSLayoutConstraint! @IBOutlet weak var loadingProgressView: MessageLoadingProgressView! @@ -27,6 +28,7 @@ class ChatLeftVideoCell: UICollectionViewCell { super.awakeFromNib() avatarImageViewWidthConstraint.constant = YepConfig.chatCellAvatarSize() + playImageViewCenterXConstraint.constant = YepConfig.ChatCell.centerXOffset thumbnailImageView.tintColor = UIColor.leftBubbleTintColor() diff --git a/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.xib b/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.xib index f86754a1..82746a62 100644 --- a/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.xib +++ b/Yep/Views/Cells/ChatLeftVideo/ChatLeftVideoCell.xib @@ -28,7 +28,7 @@ - + @@ -63,6 +63,7 @@ + diff --git a/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.swift b/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.swift index e46215e1..28b308d3 100644 --- a/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.swift +++ b/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.swift @@ -17,6 +17,7 @@ class ChatRightVideoCell: ChatRightBaseCell { @IBOutlet weak var thumbnailImageViewWidthConstraint: NSLayoutConstraint! @IBOutlet weak var playImageView: UIImageView! + @IBOutlet weak var playImageViewCenterXConstraint: NSLayoutConstraint! typealias MediaTapAction = () -> Void var mediaTapAction: MediaTapAction? @@ -25,6 +26,7 @@ class ChatRightVideoCell: ChatRightBaseCell { super.awakeFromNib() avatarImageViewWidthConstraint.constant = YepConfig.chatCellAvatarSize() + playImageViewCenterXConstraint.constant = YepConfig.ChatCell.centerXOffset thumbnailImageView.tintColor = UIColor.rightBubbleTintColor() diff --git a/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.xib b/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.xib index ba27e5b6..3e9ba0fa 100644 --- a/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.xib +++ b/Yep/Views/Cells/ChatRightVideo/ChatRightVideoCell.xib @@ -51,7 +51,7 @@ - + @@ -63,6 +63,7 @@ +