Match typing indicator avatar size to message bubble
This commit is contained in:
parent
f633e810f0
commit
aab4bebd64
@ -16,7 +16,8 @@ public class TypingIndicatorCell: ConversationViewCell {
|
||||
notImplemented()
|
||||
}
|
||||
|
||||
private let kAvatarSize: CGFloat = 36
|
||||
private let kMinBubbleHeight: CGFloat = 36
|
||||
private let kAvatarSize: CGFloat = 28
|
||||
private let kAvatarHSpacing: CGFloat = 8
|
||||
|
||||
private let avatarView = AvatarImageView()
|
||||
@ -126,10 +127,10 @@ public class TypingIndicatorCell: ConversationViewCell {
|
||||
|
||||
if shouldShowAvatar() {
|
||||
return CGSizeCeil(CGSize(width: kAvatarSize + kAvatarHSpacing + bubbleSize.width,
|
||||
height: max(kAvatarSize, bubbleSize.height)))
|
||||
height: max(kMinBubbleHeight, bubbleSize.height)))
|
||||
} else {
|
||||
return CGSizeCeil(CGSize(width: bubbleSize.width,
|
||||
height: max(kAvatarSize, bubbleSize.height)))
|
||||
height: max(kMinBubbleHeight, bubbleSize.height)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user