VoiceMessage bubble cells: Add extra space for timestamp.

This commit is contained in:
SBiOSoftWhare 2022-01-28 14:38:49 +01:00
parent 198b91ec70
commit 0e02397a70
2 changed files with 7 additions and 2 deletions

View file

@ -24,9 +24,12 @@ class VoiceMessageIncomingBubbleCell: VoiceMessageBubbleCell {
// TODO: Use constants
let messageViewMarginRight: CGFloat = 80
let messageLeftMargin: CGFloat = 48
let playbackViewRightMargin: CGFloat = 40
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = messageViewMarginRight
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = messageLeftMargin
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = messageLeftMargin
playbackController.playbackView.stackViewTrailingContraint.constant = playbackViewRightMargin
}
override func update(theme: Theme) {

View file

@ -27,10 +27,12 @@ class VoiceMessageOutgoingWithoutSenderInfoBubbleCell: VoiceMessageBubbleCell {
// Same as outgoing message
let rightMargin: CGFloat = 34.0
let leftMargin: CGFloat = 80.0
let playbackViewRightMargin: CGFloat = 40
bubbleCellContentView?.innerContentViewTrailingConstraint.constant = rightMargin
bubbleCellContentView?.innerContentViewLeadingConstraint.constant = leftMargin
playbackController.playbackView.stackViewTrailingContraint.constant = playbackViewRightMargin
}
override func update(theme: Theme) {